summaryrefslogtreecommitdiff
path: root/gtk/spice-widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/spice-widget.c')
-rw-r--r--gtk/spice-widget.c2
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);
}