aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pugl/detail/win.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c
index 2f10ff1..b7f03a3 100644
--- a/pugl/detail/win.c
+++ b/pugl/detail/win.c
@@ -552,9 +552,11 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
switch (message) {
case WM_SHOWWINDOW:
- handleConfigure(view, &event);
- RedrawWindow(view->impl->hwnd, NULL, NULL,
- RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_INTERNALPAINT);
+ if (wParam) {
+ handleConfigure(view, &event);
+ RedrawWindow(view->impl->hwnd, NULL, NULL,
+ RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_INTERNALPAINT);
+ }
break;
case WM_SIZE:
handleConfigure(view, &event);