diff options
author | David Robillard <d@drobilla.net> | 2020-03-08 12:33:59 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-08 15:33:15 +0100 |
commit | 6a8eae83edcf02c12149782c1bcbc95d69257594 (patch) | |
tree | af4e3b4d538a79548424ae269ea1a720797291ae | |
parent | 9b6c1c76305da122b17ccd74f1db00c2622d946c (diff) |
Mac: Do not dispatch expose events if window is invisible
-rw-r--r-- | pugl/detail/mac.m | 4 |
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, |