From b2b73a349eb8a99d533080344f835830b788e7cf Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 23 Jan 2011 23:09:58 +0100 Subject: [PATCH] Fix valgrind warning about uninitialized value mods_state->effective is not being set in XIQueryPointer() currently, so use base|latched|locked instead, effective is nothing else than a shorthand for these ORs, and these 3 values are set correctly anytime. --- gdk/x11/gdkdevice-xi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c index 78b9de693a..24699bfa39 100644 --- a/gdk/x11/gdkdevice-xi2.c +++ b/gdk/x11/gdkdevice-xi2.c @@ -677,7 +677,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state, guint state = 0; if (mods_state) - state = (guint) mods_state->effective; + state = (guint) mods_state->base | mods_state->latched | mods_state->locked; if (buttons_state) {