aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-xlib.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-08 19:10:54 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-08 19:13:51 -0400
commitf0dcd27213628ec04f37623ee72ded56fbbeeee8 (patch)
tree4ffde0b1d4e0b10bb1bd193c4c26fb3e1bcfa904 /src/window-xlib.c
parentc64efa947ca2cf63c294dba4245fe14048f66adf (diff)
downloadrunes-f0dcd27213628ec04f37623ee72ded56fbbeeee8.tar.gz
runes-f0dcd27213628ec04f37623ee72ded56fbbeeee8.zip
use cairo groups instead of writing the double-buffering code myself
pretty much equivalent, but a lot simpler
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r--src/window-xlib.c7
1 files changed, 2 insertions, 5 deletions
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);
}