mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
#160 log WM_WINDOWPOSCHANGING
This commit is contained in:
parent
38e17b0720
commit
0458b765ac
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user