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
This commit is contained in:
Keeley Hammond 2021-02-05 12:11:26 -08:00 committed by GitHub
parent c175d41ae8
commit d06bb7c97b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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