diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -778,6 +778,9 @@ static gboolean gd_draw_event(GtkWidget *widget, cairo_t *cr, void *opaque) if (!vc->gfx.ds) { return FALSE; } + if (!vc->gfx.surface) { + return FALSE; + } vc->gfx.dcl.update_interval = gd_monitor_update_interval(vc->window ? vc->window : s->window); |