fix: win.isMaximized() for transparent windows on Windows (#38344)

fix: win.isMaximized() for transparent windows

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2023-05-17 14:49:10 +02:00
committed by GitHub
parent a7b58871a8
commit 672c31283a
2 changed files with 19 additions and 1 deletions

View File

@@ -640,7 +640,7 @@ bool NativeWindowViews::IsMaximized() {
return true;
} else {
#if BUILDFLAG(IS_WIN)
if (transparent()) {
if (transparent() && !IsMinimized()) {
// Compare the size of the window with the size of the display
auto display = display::Screen::GetScreen()->GetDisplayNearestWindow(
GetNativeWindow());