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:
rdb 2021-03-11 23:49:09 +01:00
parent 7f4d030032
commit eca18f3c19

View File

@ -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;