From 787ba25a8a3af52b38448a1a6f8c9704ea8b7905 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 7 Feb 2011 18:21:31 +0100 Subject: 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 Reviewed-by: Daniel Stone Reviewed-by: Peter Hutterer ` Signed-off-by: Peter Hutterer --- Xi/xiquerypointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xi') 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; -- cgit v1.2.3