gdk/wayland: Return pad devices querying for all devices

These devices unfortunately didn't ever get a capability flag in
3.24 (fixed in GTK4). We are very far off into maintenance grounds that
it is not ideal to add new flag values, but we could however return
these devices if GDK_SEAT_CAPABILITY_ALL is being asked.

Do that, so it is possible to deal with pad devices, even if it's
not possible to query them specifically.
This commit is contained in:
Carlos Garnacho 2023-06-13 22:54:23 +02:00
parent 81029b824b
commit a9d7198d63

View File

@ -5141,6 +5141,21 @@ gdk_wayland_seat_get_slaves (GdkSeat *seat,
}
}
/* There is no specific capability for pads, return
* them anyways if all devices are requested
*/
if (capabilities == GDK_SEAT_CAPABILITY_ALL)
{
GList *l;
for (l = wayland_seat->tablet_pads; l; l = l->next)
{
GdkWaylandTabletPadData *pad = l->data;
slaves = g_list_prepend (slaves, pad->device);
}
}
return slaves;
}