From d89bf1d43936c20c3364dc9c0c72ad5c7e031f57 Mon Sep 17 00:00:00 2001 From: Sergio Lopez Date: Mon, 4 Feb 2019 13:08:23 +0100 Subject: 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 Message-id: 20190204120823.41333-1-slp@redhat.com Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ui') 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); -- cgit v1.2.3