diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mac.m | 7 | ||||
-rw-r--r-- | src/win.c | 7 |
2 files changed, 14 insertions, 0 deletions
@@ -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]; @@ -217,6 +217,13 @@ puglShow(PuglView* view) { PuglInternals* impl = view->impl; + if (!impl->hwnd) { + const PuglStatus st = puglRealize(view); + if (st) { + return st; + } + } + ShowWindow(impl->hwnd, SW_SHOWNORMAL); SetFocus(impl->hwnd); return PUGL_SUCCESS; |