summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-02-11 23:18:58 -0600
committerepoch <epoch@hacking.allowed.org>2020-02-11 23:18:58 -0600
commit4e72a56355b49d324aad672ea9efc6ff4064b449 (patch)
tree0879cd6a5615cf11602bf472ec24dc812a72664a
parentafb06bd44b4b84b06e9b3bcbabecfcd1891d59c5 (diff)
downloadhackvr-4e72a56355b49d324aad672ea9efc6ff4064b449.tar.gz
hackvr-4e72a56355b49d324aad672ea9efc6ff4064b449.zip
not sure why I had expose events not triggering a redraw
-rw-r--r--src/graphics_cs_x11.c7
1 files changed, 4 insertions, 3 deletions
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: