diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-11-20 03:27:43 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2010-11-24 02:34:55 +0100 |
commit | 9e050dc423bf8ea8754bdcc82c8aa53f09abadd1 (patch) | |
tree | 2ad92fcb25cf11c85d80bdc27b1efab408452366 /gtk/spice-widget.c | |
parent | 42a862023db5d7a09091ae9415649d57dfcaa2dd (diff) |
gtk: passing seems wrong, it should be the context
Diffstat (limited to 'gtk/spice-widget.c')
-rw-r--r-- | gtk/spice-widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c index df25a16..4b67fa4 100644 --- a/gtk/spice-widget.c +++ b/gtk/spice-widget.c @@ -1298,7 +1298,7 @@ static void mark(SpiceChannel *channel, gint mark, gpointer data) spice_display *d = SPICE_DISPLAY_GET_PRIVATE(display); d->mark = mark; - if (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); } |