aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorSergio Lopez <slp@redhat.com>2019-02-04 13:08:23 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-05 09:53:49 +0100
commitd89bf1d43936c20c3364dc9c0c72ad5c7e031f57 (patch)
tree2e20a93de5c4044b08240abdf9e2be2793e6d71f /ui
parenta0fbb9a8bc600063540443258c66c31f31048008 (diff)
ui: listen for GDK_SMOOTH_SCROLL events
On Wayland, without grabbing focus, two-finger scrolling generates GDK_SMOOTH_SCROLL events instead of GDK_SCROLL_*, so listen for them. Signed-off-by: Sergio Lopez <slp@redhat.com> Message-id: 20190204120823.41333-1-slp@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index 5a584353bd..57af69b0c4 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -2045,6 +2045,7 @@ static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc,
GDK_ENTER_NOTIFY_MASK |
GDK_LEAVE_NOTIFY_MASK |
GDK_SCROLL_MASK |
+ GDK_SMOOTH_SCROLL_MASK |
GDK_KEY_PRESS_MASK);
gtk_widget_set_can_focus(vc->gfx.drawing_area, TRUE);