fix: transparent window max/unmax event firing (#32643)

This commit is contained in:
Shelley Vohr
2022-01-31 22:10:57 +01:00
committed by GitHub
parent 365933f1f3
commit f5dc2a6535
3 changed files with 34 additions and 3 deletions

View File

@@ -594,6 +594,7 @@ void NativeWindowViews::Unmaximize() {
#if defined(OS_WIN)
if (transparent()) {
SetBounds(restore_bounds_, false);
NotifyWindowUnmaximize();
return;
}
#endif

View File

@@ -187,6 +187,7 @@ void NativeWindowViews::Maximize() {
auto display = display::Screen::GetScreen()->GetDisplayNearestWindow(
GetNativeWindow());
SetBounds(display.work_area(), false);
NotifyWindowMaximize();
}
}