Wake Gestures: minor improvements and fixes

by flar2