From 50f1188cc780c341d654d8c31d61185326232b54 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Nov 2019 13:10:28 +0100 Subject: X11: Don't send expose events to invisible windows --- pugl/detail/x11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.1