fix: show maximized frameless window (#30804)
This commit is contained in:
parent
ce6a71e936
commit
fb40065c1e
2 changed files with 38 additions and 1 deletions
|
@ -1629,8 +1629,17 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* event) {
|
|||
}
|
||||
|
||||
ui::WindowShowState NativeWindowViews::GetRestoredState() {
|
||||
if (IsMaximized())
|
||||
if (IsMaximized()) {
|
||||
#if defined(OS_WIN)
|
||||
// Only restore Maximized state when window is NOT transparent style
|
||||
if (!transparent()) {
|
||||
return ui::SHOW_STATE_MAXIMIZED;
|
||||
}
|
||||
#else
|
||||
return ui::SHOW_STATE_MAXIMIZED;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (IsFullscreen())
|
||||
return ui::SHOW_STATE_FULLSCREEN;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue