-
Committer:
smspillaz
-
Author(s):
Daniel van Vugt
-
Date:
2012-02-16 01:11:23 UTC
-
mfrom:
(2995.1.8 fix-925293)
-
Revision ID:
sam.spilsbury@canonical.com-20120216011123-d1wlly5ttqlnkqjp
Add support for key "tap" detection. A "tap" is when a key is pressed and released without any other key/button press occurring in between. (LP: #925293)
For example, if you have bound to the Alt key:
This will trigger a tap action:
Press Alt
Release Alt
This will NOT trigger a tap action:
Press Alt
Press F
Release F
Release Alt
An example of how to subscribe to taps has been added to the water plugin. If you want to test taps on modifier keys however you will also need to edit water.xml.in where it is commented.
Essentially, if your Terminate callback has both state bits set:
CompAction::StateTermKey
CompAction::StateTermTapped
then you can be sure the key was tapped and not used as a modifier of another key.
Fixes LP#925293
Merge lp:~vanvugt/compiz-core/fix-925293 into lp:compiz-core