From 4e72a56355b49d324aad672ea9efc6ff4064b449 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 11 Feb 2020 23:18:58 -0600 Subject: not sure why I had expose events not triggering a redraw --- src/graphics_cs_x11.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/graphics_cs_x11.c') diff --git a/src/graphics_cs_x11.c b/src/graphics_cs_x11.c index bee2608..28c9eb5 100644 --- a/src/graphics_cs_x11.c +++ b/src/graphics_cs_x11.c @@ -508,9 +508,10 @@ int graphics_event_handler(int world_changed) { //should calling draw_screen be } while(XCheckMaskEvent(x11_global.dpy,HV_GRAPHICS_X11_EVENT_MASK,&e)) {//we should squish all of the window events. they just cause a redraw anyway switch(e.type) { -// case Expose: -// if(e.xexpose.count == 0) redraw=1; -// break; + case Expose: + //if(e.xexpose.count == 0) redraw=1; + redraw=1; + break; //These are all window events. case ConfigureNotify: -- cgit v1.2.3