From d8a1c1b1aba92e60d2fcad7cdf5abe77f3c9ae10 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 5 Aug 2009 14:52:45 +1000 Subject: 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 --- XI2proto.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3