From 6a8eae83edcf02c12149782c1bcbc95d69257594 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Mar 2020 12:33:59 +0100 Subject: Mac: Do not dispatch expose events if window is invisible --- pugl/detail/mac.m | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.1