summaryrefslogtreecommitdiff
path: root/window_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'window_windows.c')
-rw-r--r--window_windows.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window_windows.c b/window_windows.c
index a4eefb3..8f618ab 100644
--- a/window_windows.c
+++ b/window_windows.c
@@ -28,7 +28,8 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
if (FillRect((HDC) wParam, &r, windowBackground) == 0)
xpanic("error filling WM_PRINTCLIENT DC with window background color", GetLastError());
return lResult;
- case WM_SIZE:
+ case WM_WINDOWPOSCHANGING:
+ case WM_WINDOWPOSCHANGED:
if (GetClientRect(hwnd, &r) == 0)
xpanic("error getting client rect for Window in WM_SIZE", GetLastError());
windowResize(data, &r);