Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Mikhaylenko
a05fd49694 main: Use the seat pointer device for touchpad gesture events
In cab1dcb696, events stopped carrying around
a separate source device, and instead the seat pointer is always used as
the device for scroll events. However, this is also relevant for touchpad
gesture events and they are ignored otherwise.
2021-02-23 19:23:31 +05:00

View File

@@ -1379,10 +1379,12 @@ handle_pointing_event (GdkEvent *event)
type = gdk_event_get_event_type (event);
sequence = gdk_event_get_event_sequence (event);
if (type == GDK_SCROLL &&
(gdk_device_get_source (device) == GDK_SOURCE_TOUCHPAD ||
gdk_device_get_source (device) == GDK_SOURCE_TRACKPOINT ||
gdk_device_get_source (device) == GDK_SOURCE_MOUSE))
if ((type == GDK_SCROLL &&
(gdk_device_get_source (device) == GDK_SOURCE_TOUCHPAD ||
gdk_device_get_source (device) == GDK_SOURCE_TRACKPOINT ||
gdk_device_get_source (device) == GDK_SOURCE_MOUSE)) ||
type == GDK_TOUCHPAD_SWIPE ||
type == GDK_TOUCHPAD_PINCH)
{
/* A bit of a kludge, resolve target lookups for scrolling devices
* on the seat pointer.