From f0dcd27213628ec04f37623ee72ded56fbbeeee8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 8 May 2016 19:10:54 -0400 Subject: use cairo groups instead of writing the double-buffering code myself pretty much equivalent, but a lot simpler --- src/window-xlib.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/window-xlib.c') diff --git a/src/window-xlib.c b/src/window-xlib.c index 68930d2..20f4eee 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -519,11 +519,7 @@ static void runes_window_backend_flush(RunesTerm *t) } runes_display_draw_screen(t); - - cairo_set_source_surface( - w->backend_cr, cairo_get_target(t->display->cr), 0.0, 0.0); - cairo_paint(w->backend_cr); - runes_display_draw_cursor(t, w->backend_cr); + runes_display_draw_cursor(t); cairo_surface_flush(cairo_get_target(w->backend_cr)); clock_gettime(CLOCK_REALTIME, &w->last_redraw); @@ -879,6 +875,7 @@ static void runes_window_backend_handle_expose_event( { UNUSED(e); + t->display->dirty = 1; runes_window_backend_flush(t); } -- cgit v1.2.3-54-g00ecf