mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
wayland: Observe GDK_SEAT_CAPABILITY_TABLET_STYLUS on gdk_seat_get_slaves()
This flag wasn't being honored so far...
This commit is contained in:
parent
8305465440
commit
5b9adfba46
@ -4884,6 +4884,19 @@ gdk_wayland_seat_get_slaves (GdkSeat *seat,
|
||||
if (wayland_seat->touch && (capabilities & GDK_SEAT_CAPABILITY_TOUCH))
|
||||
slaves = g_list_prepend (slaves, wayland_seat->touch);
|
||||
|
||||
if (wayland_seat->tablets && (capabilities & GDK_SEAT_CAPABILITY_TABLET_STYLUS))
|
||||
{
|
||||
GList *l;
|
||||
|
||||
for (l = wayland_seat->tablets; l; l = l->next)
|
||||
{
|
||||
GdkWaylandTabletData *tablet = l->data;
|
||||
|
||||
slaves = g_list_prepend (slaves, tablet->stylus_device);
|
||||
slaves = g_list_prepend (slaves, tablet->eraser_device);
|
||||
}
|
||||
}
|
||||
|
||||
return slaves;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user