summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/x11/win_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c
index 5c431ee2..3804f671 100644
--- a/platform/x11/win_main.c
+++ b/platform/x11/win_main.c
@@ -987,8 +987,6 @@ frameproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
info();
return 0;
}
- if (wParam == SC_MAXIMIZE)
- gapp.shrinkwrap = 0;
break;
case WM_SIZE:
@@ -999,6 +997,8 @@ frameproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
GetClientRect(hwnd, &rect);
MoveWindow(hwndview, rect.left, rect.top,
rect.right-rect.left, rect.bottom-rect.top, TRUE);
+ if (wParam == SIZE_MAXIMIZED)
+ gapp.shrinkwrap = 0;
return 0;
}