diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-06-23 00:24:12 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-06-23 23:42:53 +0200 |
commit | 6d2860efb74a7070bb035b07026ec154ed8b8e57 (patch) | |
tree | b54b130329eaf5455d3a54a7171e37278103cf84 /gdk/wayland | |
parent | 5f29b8fcecd3acba012e1bc50d2af35fdbd3590f (diff) | |
download | gtk+-6d2860efb74a7070bb035b07026ec154ed8b8e57.tar.gz |
gdk: Drop gdk_seat_get_logical_pointers()
Events come from hardware devices and are handled by controllers,
there's no need to use logical pointers, nor to peek them. Drop this
unused API.
Diffstat (limited to 'gdk/wayland')
-rw-r--r-- | gdk/wayland/gdkdevice-wayland.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index d9b3ee8fa5..fe4d767e48 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -4767,32 +4767,6 @@ gdk_wayland_seat_get_physical_devices (GdkSeat *seat, return physical_devices; } -static GList * -gdk_wayland_seat_get_logical_pointers (GdkSeat *seat, - GdkSeatCapabilities capabilities) -{ - GdkWaylandSeat *wayland_seat = GDK_WAYLAND_SEAT (seat); - GList *logical_devices = NULL; - - if (capabilities & GDK_SEAT_CAPABILITY_POINTER) - logical_devices = g_list_prepend (logical_devices, wayland_seat->logical_pointer); - if (capabilities & GDK_SEAT_CAPABILITY_TOUCH) - logical_devices = g_list_prepend (logical_devices, wayland_seat->logical_touch); - if (capabilities & GDK_SEAT_CAPABILITY_TABLET_STYLUS) - { - GList *l; - - for (l = wayland_seat->tablets; l; l = l->next) - { - GdkWaylandTabletData *tablet = l->data; - - logical_devices = g_list_prepend (logical_devices, tablet->logical_device); - } - } - - return logical_devices; -} - static void gdk_wayland_seat_class_init (GdkWaylandSeatClass *klass) { @@ -4806,7 +4780,6 @@ gdk_wayland_seat_class_init (GdkWaylandSeatClass *klass) seat_class->ungrab = gdk_wayland_seat_ungrab; seat_class->get_logical_device = gdk_wayland_seat_get_logical_device; seat_class->get_physical_devices = gdk_wayland_seat_get_physical_devices; - seat_class->get_logical_pointers = gdk_wayland_seat_get_logical_pointers; } static void |