Skip to content
Snippets Groups Projects
Commit 7cf87257 authored by Dongwon Kim's avatar Dongwon Kim Committed by Gerd Hoffmann
Browse files

ui/gtk: gd_draw_event returns FALSE when no cairo surface is bound


gd_draw_event shouldn't try to repaint if surface does not exist
for the VC.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarDongwon Kim <dongwon.kim@intel.com>
Message-Id: <20211104065153.28897-4-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann's avatarGerd Hoffmann <kraxel@redhat.com>
parent 4872a023
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment