From 0458b765ac3662ff078248d23f60743be1a875bf Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Thu, 17 Aug 2023 14:17:36 +0200 Subject: [PATCH] #160 log WM_WINDOWPOSCHANGING --- src/wndproc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wndproc.c b/src/wndproc.c index 1d70959..55bf0f1 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -479,11 +479,16 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam } case WM_WINDOWPOSCHANGING: { + WINDOWPOS* pos = (WINDOWPOS*)lParam; + + dbg_dump_swp_flags(pos->flags); + TRACE( + " hwndInsertAfter=%p, x=%d, y=%d, cx=%d, cy=%d\n", + pos->hwndInsertAfter, pos->x, pos->y, pos->cx, pos->cy); + /* workaround for a bug where sometimes a background window steals the focus */ if (g_mouse_locked) { - WINDOWPOS* pos = (WINDOWPOS*)lParam; - if (pos->flags == SWP_NOMOVE + SWP_NOSIZE) { mouse_unlock();