qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] ui: listen for GDK_SMOOTH_SCROLL events
@ 2019-02-04 12:08 Sergio Lopez
  2019-02-04 12:34 ` no-reply
  2019-02-05  8:54 ` Gerd Hoffmann
  0 siblings, 2 replies; 3+ messages in thread
From: Sergio Lopez @ 2019-02-04 12:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel, Sergio Lopez

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>
---
 ui/gtk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/gtk.c b/ui/gtk.c
index 87c0e33d2a..77bd19025d 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -2043,6 +2043,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);
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-05  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-04 12:08 [Qemu-devel] [PATCH] ui: listen for GDK_SMOOTH_SCROLL events Sergio Lopez
2019-02-04 12:34 ` no-reply
2019-02-05  8:54 ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).