fix: transparent window max/unmax event firing (#32643)
This commit is contained in:
parent
365933f1f3
commit
f5dc2a6535
3 changed files with 34 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue