[Spice-devel] [PATCH spice-gtk 01/25] widget: simplify redraw call

Marc-André Lureau marcandre.lureau at gmail.com
Thu Jul 12 15:28:58 PDT 2012


---
 gtk/spice-widget.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index e892591..095224c 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -1637,8 +1637,7 @@ static void mark(SpiceChannel *channel, gint mark, gpointer data)
     d->mark = mark;
     spice_main_set_display_enabled(d->main, d->channel_id, d->mark != 0);
     if (mark != 0 && gtk_widget_get_window(GTK_WIDGET(display)))
-        gdk_window_invalidate_rect(gtk_widget_get_window(GTK_WIDGET(display)),
-                                   NULL, FALSE);
+        gtk_widget_queue_draw(GTK_WIDGET(display));
 }
 
 static void cursor_set(SpiceCursorChannel *channel,
-- 
1.7.10.4



More information about the Spice-devel mailing list