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>
This commit is contained in:
Carlos Garnacho 2022-08-13 00:37:51 +02:00
parent aa7653bed7
commit 0d47b467f6

View File

@ -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;