x11: Simplify XI2 mods state
https://bugzilla.gnome.org/show_bug.cgi?id=671070
This commit is contained in:
committed by
Matthias Clasen
parent
deea79f4e4
commit
f3b899fc83
@ -745,7 +745,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
|
||||
guint state = 0;
|
||||
|
||||
if (mods_state)
|
||||
state = (guint) mods_state->base | mods_state->latched | mods_state->locked;
|
||||
state = mods_state->effective;
|
||||
|
||||
if (buttons_state)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user