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

Hans de Goede hdegoede at redhat.com
Sat Apr 14 10:46:46 PDT 2012


Ack.

On 04/13/2012 06:54 PM, Marc-André Lureau wrote:
> 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);


More information about the Spice-devel mailing list