aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/win.c b/src/win.c
index 5cfd89a..ff296c2 100644
--- a/src/win.c
+++ b/src/win.c
@@ -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;