[Spice-commits] gtk/spice-widget.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Fri Dec 7 02:51:28 PST 2012

 gtk/spice-widget.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit a9b7e4cbb31a3457a90582ebe5cdb177393edbd2
Author: Dunrong Huang <riegamaths at gmail.com>
Date:   Wed Dec 5 19:01:00 2012 +0800

    spice-widget: Fix rendering issue with X11 backend enabled
    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>

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 |
+#ifdef WITH_X11
+    gtk_widget_set_double_buffered(widget, false);
     gtk_widget_set_double_buffered(widget, true);
     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);

More information about the Spice-commits mailing list