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:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user