summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-29 14:18:37 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-29 14:19:35 +1000
commit0f47203a9a690498c18b1c04e2ef5deed23a0e3e (patch)
tree0732962e5b2bdc7a3795faa1f7315bdc6143be3d /dix
parent75c73ddbfc9236bb80a3709d467674c4a1018fa3 (diff)
dix: Set the implicit passive grab flag for keyboards too.
Extension devices have ActivateKeyboardGrab as their grab activation function, hence we need to ensure the implicit passive grab flag is set accordingly in the grab for further event delivery. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r--dix/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/events.c b/dix/events.c
index da9107ea1..78663ea0b 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -1605,6 +1605,7 @@ ActivateKeyboardGrab(DeviceIntPtr keybd, GrabPtr grab, TimeStamp time, Bool pass
grabinfo->activeGrab = *grab;
grabinfo->grab = &grabinfo->activeGrab;
grabinfo->fromPassiveGrab = passive;
+ grabinfo->implicitGrab = passive & ImplicitGrabMask;
CheckGrabForSyncs(keybd, (Bool)grab->keyboardMode, (Bool)grab->pointerMode);
}