aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/mac.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m
index ce00a10..f26cb9e 100644
--- a/pugl/detail/mac.m
+++ b/pugl/detail/mac.m
@@ -128,6 +128,10 @@ updateViewRect(PuglView* view)
reshaped = false;
}
+ if (![[puglview->impl->drawView window] isVisible]) {
+ return;
+ }
+
const PuglEventExpose ev = {
PUGL_EXPOSE,
0,