mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
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
This commit is contained in:
parent
cb40049ec1
commit
91ac449639
@ -771,8 +771,8 @@ meta_wayland_keyboard_update (MetaWaylandKeyboard *keyboard,
|
|||||||
* key events (incl. modifiers), handling those additionally will result
|
* key events (incl. modifiers), handling those additionally will result
|
||||||
* in doubly-pressed keys.
|
* in doubly-pressed keys.
|
||||||
*/
|
*/
|
||||||
if (event->flags &
|
if ((event->flags &
|
||||||
(CLUTTER_EVENT_FLAG_SYNTHETIC | CLUTTER_EVENT_FLAG_INPUT_METHOD) != 0)
|
(CLUTTER_EVENT_FLAG_SYNTHETIC | CLUTTER_EVENT_FLAG_INPUT_METHOD)) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* If we get a key event but still have pending modifier state
|
/* If we get a key event but still have pending modifier state
|
||||||
|
Loading…
Reference in New Issue
Block a user