#160 log WM_WINDOWPOSCHANGING
This commit is contained in:
parent
38e17b0720
commit
0458b765ac
1 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue