diff options
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/detail/x11.c | 4 |
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; } |