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 (#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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user