summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-04-15 12:30:12 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-04-15 12:30:12 +0300
commit5bc8cebd0464c931c3c5559ea485ba281b75e76b (patch)
treefe3978412ea8af3f368d7b31be8cec6c0e441502 /src
parentbdf9b26bff9153bd5ee8fe186a370a4fbf33221a (diff)
fixes #4352 (StdMsg: resize problems)
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/Windows/CDlgBase.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/CDlgBase.cpp b/src/mir_core/src/Windows/CDlgBase.cpp
index 40b762ced8..d4a22ca021 100644
--- a/src/mir_core/src/Windows/CDlgBase.cpp
+++ b/src/mir_core/src/Windows/CDlgBase.cpp
@@ -402,7 +402,14 @@ INT_PTR CDlgBase::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_SIZE:
RECT rc;
- GetClientRect(m_hwnd, &rc);
+ if (lParam == 0)
+ GetClientRect(m_hwnd, &rc);
+ else {
+ rc.left = rc.top = 0;
+ rc.right = GET_X_LPARAM(lParam);
+ rc.left = GET_Y_LPARAM(lParam);
+ }
+
if (memcmp(&m_rcPrev, &rc, sizeof(RECT))) {
OnResize();
m_rcPrev = rc;