[Spice-devel] [PATCH spice-gtk] spice-widget: Fix rendering issue with X11 backend enabled

Marc-André Lureau mlureau at redhat.com
Wed Dec 5 03:48:58 PST 2012


ack

----- Mensaje original -----
> commit 5ec6e4d fixes a rendering issue on win32 platform, but raises
> another
> bug on linux platform.
> 
> If X11 backend is enabled, app window will becomes while screen when
> draging it.
> This bug can be reproduced easily:
> compile spice-gtk using:
> $ ./configure --with-gtk=2.0 --with-x11
> $ make
> $ gtk/spicy -h host -p port
> 
> Signed-off-by: Dunrong Huang <riegamaths at gmail.com>
> ---
>  gtk/spice-widget.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
> index a9f0577..a8d3ce9 100644
> --- a/gtk/spice-widget.c
> +++ b/gtk/spice-widget.c
> @@ -482,7 +482,11 @@ static void spice_display_init(SpiceDisplay
> *display)
>                            GDK_LEAVE_NOTIFY_MASK |
>                            GDK_KEY_PRESS_MASK |
>                            GDK_SCROLL_MASK);
> +#ifdef WITH_X11
> +    gtk_widget_set_double_buffered(widget, false);
> +#else
>      gtk_widget_set_double_buffered(widget, true);
> +#endif
>      gtk_widget_set_can_focus(widget, true);
>      gtk_widget_set_has_window(widget, true);
>      d->keycode_map =
>      vnc_display_keymap_gdk2xtkbd_table(&d->keycode_maplen);
> --
> 1.8.0
> 
> 


More information about the Spice-devel mailing list