[Spice-devel] [PATCH spice-gtk] gtk: scroll event are not received with recent gtk+

Marc-André Lureau marcandre.lureau at gmail.com
Fri Apr 13 09:54:58 PDT 2012


Add explicit scroll event mask to make it work again.
---
 gtk/spice-widget.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 1436d19..5c59405 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -379,7 +379,8 @@ static void spice_display_init(SpiceDisplay *display)
                           GDK_BUTTON_MOTION_MASK |
                           GDK_ENTER_NOTIFY_MASK |
                           GDK_LEAVE_NOTIFY_MASK |
-                          GDK_KEY_PRESS_MASK);
+                          GDK_KEY_PRESS_MASK |
+                          GDK_SCROLL_MASK);
     gtk_widget_set_double_buffered(widget, false);
     gtk_widget_set_can_focus(widget, true);
     gtk_widget_set_has_window(widget, true);
-- 
1.7.10



More information about the Spice-devel mailing list