[Spice-devel] [PATCH spice-gtk] win32: fix rendering issue when widget is partially off screen

Marc-André Lureau marcandre.lureau at gmail.com
Tue Nov 27 11:27:28 PST 2012


Gtk+ in win32 has a rendering bug with window non-buffered:
https://bugzilla.gnome.org/show_bug.cgi?id=688962

According to Alex Larsson, this shouldn't affect performance much,
since there is already extra-copy done for offscreen buffers, and
might even make it faster in gtk+ 3.0...

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=874482
---
 gtk/spice-widget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 1282062..a9f0577 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -482,7 +482,7 @@ static void spice_display_init(SpiceDisplay *display)
                           GDK_LEAVE_NOTIFY_MASK |
                           GDK_KEY_PRESS_MASK |
                           GDK_SCROLL_MASK);
-    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);
-- 
1.7.11.7



More information about the Spice-devel mailing list