mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: win.isMaximized() for transparent windows on Windows (#38234)
This commit is contained in:
@@ -656,7 +656,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());
|
||||
|
||||
Reference in New Issue
Block a user