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




commit 0d47b467f6640d2cc1757b34807a6b6a7312430a
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
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2573>

 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]