diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c index 80aa0b0d74..6e496261eb 100644 --- a/gdk/x11/gdkdevice-xi2.c +++ b/gdk/x11/gdkdevice-xi2.c @@ -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) {