From 0f47203a9a690498c18b1c04e2ef5deed23a0e3e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 29 May 2009 14:18:37 +1000 Subject: [PATCH] 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 --- dix/events.c | 1 + 1 file changed, 1 insertion(+) 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); }