From cab1dcb6960d1efb4dee916a1c804c908664c530 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 29 Jul 2020 00:03:48 +0200 Subject: gdk: Conflate GDK devices Make GdkEvents hold a single GdkDevice. This device is closer to the logical device conceptually, although it must be sufficient for device checks (i.e. GdkInputSource), which makes it similar to the physical devices. Make the logical devices have a more accurate GdkInputSource where needed, and conflate the event devices altogether. --- gtk/gtklistbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtklistbox.c') diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index fb06f24ed4..a95c87457a 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -1849,7 +1849,7 @@ gtk_list_box_click_gesture_released (GtkGestureClick *gesture, state = gdk_event_get_modifier_state (event); extend = (state & GDK_SHIFT_MASK) != 0; modify = (state & GDK_CONTROL_MASK) != 0; - source = gdk_device_get_source (gdk_event_get_source_device (event)); + source = gdk_device_get_source (gdk_event_get_device (event)); if (source == GDK_SOURCE_TOUCHSCREEN) modify = !modify; -- cgit v1.2.1