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 d7c460288a
commit 7fc62a0e9c

View File

@@ -701,7 +701,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)
{