mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
windisplay: Don't try to activate window when resizing/moving it
This fixes an issue where if you quickly alt-tab when the window opens, it receives a WM_ACTIVATE event and thinks it continues to be active, which causes issues with applying cursor confinement. I think you can probably still reproduce that issue, but your reflexes have to be significantly more ninja now.
This commit is contained in:
parent
7f4d030032
commit
eca18f3c19
@ -749,7 +749,7 @@ do_reshape_request(int x_origin, int y_origin, bool has_origin,
|
||||
GetWindowInfo(_hWnd, &wi);
|
||||
AdjustWindowRectEx(&view_rect, wi.dwStyle, FALSE, wi.dwExStyle);
|
||||
|
||||
UINT flags = SWP_NOZORDER | SWP_NOSENDCHANGING;
|
||||
UINT flags = SWP_NOZORDER | SWP_NOSENDCHANGING | SWP_NOACTIVATE;
|
||||
|
||||
if (has_origin) {
|
||||
x_origin = view_rect.left;
|
||||
|
Loading…
x
Reference in New Issue
Block a user