Browse Source

fix: do not run display check on "closed" windows in tray (#27615)

* fix: only run display check on restored wndow if minimized

* fix: don't run display check on hidden, non-minimized windows
Keeley Hammond 4 years ago
parent
commit
d06bb7c97b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shell/browser/native_window_views_win.cc

+ 1 - 0
shell/browser/native_window_views_win.cc

@@ -231,6 +231,7 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
       // of the window during the restore operation, this way chromium can
       // use the proper display to calculate the scale factor to use.
       if (!last_normal_placement_bounds_.IsEmpty() &&
+          (IsVisible() || IsMinimized()) &&
           GetWindowPlacement(GetAcceleratedWidget(), &wp)) {
         wp.rcNormalPosition = last_normal_placement_bounds_.ToRECT();