diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-01 14:12:41 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-22 15:56:52 +1000 |
commit | 8c5a4d6fbecf79f2dc4f2d836d741203b2d5e856 (patch) | |
tree | bbc9b7f41db402c2cc2a1e2c1ae87e643f8a7258 | |
parent | 3a077f246e9ac07a37c1b01c3d321e0f5ceb4153 (diff) |
dix: don't use the pointer as modifier device in UngrabKey.
Modifier device is always the keyboard.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r-- | dix/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c index 8419064ba..8e07532ec 100644 --- a/dix/events.c +++ b/dix/events.c @@ -5356,7 +5356,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; |