[PATCH 11/17] dix: don't use the pointer as modifier device in UngrabKey.
Peter Hutterer
peter.hutterer at who-t.net
Sun Aug 7 23:21:07 PDT 2011
Modifier device is always the keyboard.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
dix/events.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dix/events.c b/dix/events.c
index 9efe8fb..6fc07c9 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -5358,7 +5358,7 @@ ProcUngrabKey(ClientPtr client)
tempGrab.window = pWin;
tempGrab.modifiersDetail.exact = stuff->modifiers;
tempGrab.modifiersDetail.pMask = NULL;
- tempGrab.modifierDevice = GetPairedDevice(keybd);
+ tempGrab.modifierDevice = keybd;
tempGrab.type = KeyPress;
tempGrab.grabtype = GRABTYPE_CORE;
tempGrab.detail.exact = stuff->key;
--
1.7.6
More information about the xorg-devel
mailing list