Browse Source

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.
rdb 4 years ago
parent
commit
eca18f3c19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/windisplay/winGraphicsWindow.cxx

+ 1 - 1
panda/src/windisplay/winGraphicsWindow.cxx

@@ -749,7 +749,7 @@ do_reshape_request(int x_origin, int y_origin, bool has_origin,
     GetWindowInfo(_hWnd, &wi);
     GetWindowInfo(_hWnd, &wi);
     AdjustWindowRectEx(&view_rect, wi.dwStyle, FALSE, wi.dwExStyle);
     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) {
     if (has_origin) {
       x_origin = view_rect.left;
       x_origin = view_rect.left;