[mutter/wip/carlosg/grouped-tablet-device-lookups] wayland: Fix thinko in paired tablet loop filter




commit 3dbc62eec29f52b3deb364a4545b29a5eec9cc18
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Aug 13 00:37:51 2022 +0200

    wayland: Fix thinko in paired tablet loop filter
    
    This condition is inverted of how it should be. Since pad focus relies
    on grouped devices lookups (e.g. pads not grouped with a tablet do not
    focus surfaces), this fixes issues in pad focus and event propagation to
    wayland clients.
    
    Fixes: fff3654941 - wayland: Check input device capabilities in tablet seats

 src/wayland/meta-wayland-tablet-seat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-wayland-tablet-seat.c b/src/wayland/meta-wayland-tablet-seat.c
index a5d3443c67..c16eddc816 100644
--- a/src/wayland/meta-wayland-tablet-seat.c
+++ b/src/wayland/meta-wayland-tablet-seat.c
@@ -482,7 +482,7 @@ lookup_grouped_devices (ClutterInputDevice       *device,
     {
       if (l->data == device)
         continue;
-      if ((clutter_input_device_get_capabilities (l->data) & capabilities) ==
+      if ((clutter_input_device_get_capabilities (l->data) & capabilities) !=
           capabilities)
         continue;
 


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