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.
This commit is contained in:
Carlos Garnacho 2011-01-23 23:09:58 +01:00
parent 51290e0a57
commit b2b73a349e

View File

@ -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)
{