aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-11-17 13:10:28 +0100
committerDavid Robillard <d@drobilla.net>2019-11-17 13:10:49 +0100
commit50f1188cc780c341d654d8c31d61185326232b54 (patch)
treeed70d3b64abe002ad3ba38e0912e859e0e528f0c
parent8fe65911163c37a9e292aca524377076a99589ee (diff)
X11: Don't send expose events to invisible windows
-rw-r--r--pugl/detail/x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 8a24917..d9a93c3 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -813,7 +813,9 @@ puglPostRedisplayRect(PuglView* view, PuglRect rect)
w, h,
0};
- XSendEvent(view->impl->display, view->impl->win, False, 0, (XEvent*)&ev);
+ if (view->visible) {
+ XSendEvent(view->impl->display, view->impl->win, False, 0, (XEvent*)&ev);
+ }
return PUGL_SUCCESS;
}