backends/x11: Use XkbBuildCoreState the right way around

Pass parameters in the correct order, and don't let it clamp button
modifiers away (Since this macro does "state & 0xff").

Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1559
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1617>
This commit is contained in:
Carlos Garnacho 2020-11-30 19:00:31 +01:00
parent 407e8c0f37
commit 6aafdbebd9

View File

@ -1535,7 +1535,7 @@ translate_state (XIButtonState *button_state,
}
if (group_state)
state = XkbBuildCoreState (group_state->effective, state);
state |= XkbBuildCoreState (0, group_state->effective);
return state;
}