summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-05 14:52:45 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-05 15:52:27 +1000
commitd8a1c1b1aba92e60d2fcad7cdf5abe77f3c9ae10 (patch)
tree9d0f603e8e3f29db1b283c1475cac493150fae83
parentb31776bb5b416ffa15235611954e68d386edf674 (diff)
Revert "XI2proto.txt: grabbing a slave does not detach it anymore."
Detaching a slave device during an explicit grab makes sense from a UI perspective. It allows a client to get exclusive access to a device without that device's events also feeding into the respective master device. Thanks to Thomas Jaeger for his contribution. This reverts commit d0b1e55b876a29a7c820ec12d7b9cb5e081e1944. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--XI2proto.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/XI2proto.txt b/XI2proto.txt
index 00e5e8d..4b67d66 100644
--- a/XI2proto.txt
+++ b/XI2proto.txt
@@ -1050,7 +1050,11 @@ are required to be 0.
master keyboard are used. If deviceid specifies a slave pointer
the modifiers of the master keyboard paired with the attached master
pointers are used. If deviceid specifies a slave keyboard, the
- modifiers of the attached master keyboard are used.
+ modifiers of the attached master keyboard are used. Note that
+ activating a grab on a slave device detaches the device from its
+ master. In this case, the modifiers after activation of the grab are
+ from the slave device only and may be different to the modifier state
+ when the grab was triggered.
In the future, if grab_type is GrabtypeButton or GrabtypeKeyboard, the
device is actively grabbed if: