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();