[mutter] wayland: Add parentheses around logical AND



commit 817a76a7f52e4910bd0f28b1fa183513645d255e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 16 16:54:11 2018 +0100

    wayland: Add parentheses around logical AND
    
    As "suggested" by gcc and -Werror. Introduced by commit cb40049ec.

 src/wayland/meta-wayland-keyboard.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index 211a127f3..d4ae4508d 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]