GNOME Bugzilla – Bug 753627
Add touchpad gesture event mask to EogScrolledWindow
Last modified: 2015-08-17 20:39:52 UTC
GTK+ master (soon 3.17.90) implements touchpad gestures on wayland, and provides the GDK_TOUCHPAD_GESTURE_MASK event mask bit for widgets/windows to opt these in. Just setting this bit in EogScrolledWindow will be enough for GtkGesture to pick these events and do the right thing, attaching a patch for this. NB: the GTK_CHECK_VERSION is for the current version in gtk+ master, feel free to wait for a gtk+ release and change the check to .90.
Created attachment 309270 [details] [review] EogScrollView: Set the event mask bit for touchpad gestures This will be enough for the GtkGestureZoom/Rotate gestures to pick these events and emit the right signals.
Is this working on Wayland only? On my laptop it seems to get confused with two-finger scrolling when I try a zoom gesture.
Yes, this is wayland only atm. You need mutter and gtk+ master (both should get a .90 release this week). If compositor/toolkit agree on touchpad gestures, you should see spew from wl_pointer_gesture* when running eog with WAYLAND_DEBUG=1. Recent libinput/clutter might also be needed, there's been releases for these already though. It might also be the case that libinput doesn't work properly for your touchpad, libinput/tools/event-debug might help figure out.
Oh forgot to mention, this doesn't work on nested wayland, you need to run the wayland session from gdm or running gnome-shell --wayland --display-server on a tty
Okay, guess I'll have to wait a bit until I can try it as my laptop doesn't like replacing a running Wayland instance. However, this looks pretty safe, so I'll include it anyway. I'll raise the version check to 3.17.7 as that will match the next GTK release no matter whether it's going to be .7 or .90.
And in. Thanks! :) commit 456b3664738dac11898e0ee0dea41f4994da1065 Author: Carlos Garnacho <> Date: Fri Aug 14 13:56:00 2015 +0200 EogScrollView: Set the event mask bit for touchpad gestures This will be enough for the GtkGestureZoom/Rotate gestures to pick these events and emit the right signals. https://bugzilla.gnome.org/show_bug.cgi?id=753627 --- This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.