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:
parent
c175d41ae8
commit
d06bb7c97b
1 changed files with 1 additions and 0 deletions
|
@ -231,6 +231,7 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
|
||||||
// of the window during the restore operation, this way chromium can
|
// of the window during the restore operation, this way chromium can
|
||||||
// use the proper display to calculate the scale factor to use.
|
// use the proper display to calculate the scale factor to use.
|
||||||
if (!last_normal_placement_bounds_.IsEmpty() &&
|
if (!last_normal_placement_bounds_.IsEmpty() &&
|
||||||
|
(IsVisible() || IsMinimized()) &&
|
||||||
GetWindowPlacement(GetAcceleratedWidget(), &wp)) {
|
GetWindowPlacement(GetAcceleratedWidget(), &wp)) {
|
||||||
wp.rcNormalPosition = last_normal_placement_bounds_.ToRECT();
|
wp.rcNormalPosition = last_normal_placement_bounds_.ToRECT();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue