Compare commits

...

1 Commits

Author SHA1 Message Date
91ac449639 keyboard: Fix condition
!= has a higher precedence than bitwise &, so we need parentheses
to check for one of the values in flags.

https://gitlab.gnome.org/GNOME/mutter/issues/74
2018-03-16 17:12:49 +01:00

View File

@ -771,8 +771,8 @@ meta_wayland_keyboard_update (MetaWaylandKeyboard *keyboard,
* key events (incl. modifiers), handling those additionally will result
* in doubly-pressed keys.
*/
if (event->flags &
(CLUTTER_EVENT_FLAG_SYNTHETIC | CLUTTER_EVENT_FLAG_INPUT_METHOD) != 0)
if ((event->flags &
(CLUTTER_EVENT_FLAG_SYNTHETIC | CLUTTER_EVENT_FLAG_INPUT_METHOD)) != 0)
return;
/* If we get a key event but still have pending modifier state