aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac.m')
-rw-r--r--src/mac.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mac.m b/src/mac.m
index bb4bf45..adac2a5 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1004,6 +1004,13 @@ puglRealize(PuglView* view)
PuglStatus
puglShow(PuglView* view)
{
+ if (!view->impl->wrapperView) {
+ const PuglStatus st = puglRealize(view);
+ if (st) {
+ return st;
+ }
+ }
+
if (![view->impl->window isVisible]) {
[view->impl->window setIsVisible:YES];
[view->impl->drawView setNeedsDisplay: YES];