summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-02-07 18:21:31 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2011-02-14 09:12:59 +1000
commit787ba25a8a3af52b38448a1a6f8c9704ea8b7905 (patch)
tree3567d12fab92bc19ebdab32b1e4c14729b547cac /Xi
parent85f9017393c9bb19553e9afcf554673a44a09993 (diff)
Xi: make XIQueryPointer return the current modifiers/group as documented.
The previous XKB info was being returned instead of the current one, producing inconsistent results between the latest events and the modifiers/group returned by this call. Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>` Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/xiquerypointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/xiquerypointer.c b/Xi/xiquerypointer.c
index b521c48ef..8df958ea2 100644
--- a/Xi/xiquerypointer.c
+++ b/Xi/xiquerypointer.c
@@ -129,7 +129,7 @@ ProcXIQueryPointer(ClientPtr client)
if (kbd)
{
- state = &kbd->key->xkbInfo->prev_state;
+ state = &kbd->key->xkbInfo->state;
rep.mods.base_mods = state->base_mods;
rep.mods.latched_mods = state->latched_mods;
rep.mods.locked_mods = state->locked_mods;