x11: Simplify XI2 mods state

https://bugzilla.gnome.org/show_bug.cgi?id=671070
This commit is contained in:
Bastien Nocera
2012-02-29 16:18:57 +00:00
committed by Matthias Clasen
parent deea79f4e4
commit f3b899fc83

View File

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