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

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

* fix: don't run display check on hidden, non-minimized windows

Co-authored-by: VerteDinde <keeleymhammond@gmail.com>
This commit is contained in:
trop[bot]
2021-02-09 08:31:10 -08:00
committed by GitHub
parent 7695f3f1ee
commit f9e6e6eff9

View File

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