mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: transparent window max/unmax event firing (#32643)
This commit is contained in:
@@ -594,6 +594,7 @@ void NativeWindowViews::Unmaximize() {
|
||||
#if defined(OS_WIN)
|
||||
if (transparent()) {
|
||||
SetBounds(restore_bounds_, false);
|
||||
NotifyWindowUnmaximize();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -187,6 +187,7 @@ void NativeWindowViews::Maximize() {
|
||||
auto display = display::Screen::GetScreen()->GetDisplayNearestWindow(
|
||||
GetNativeWindow());
|
||||
SetBounds(display.work_area(), false);
|
||||
NotifyWindowMaximize();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user