fix: WCO not working with some window configurations (#45422)

This commit is contained in:
Shelley Vohr 2025-02-05 12:48:51 +01:00 committed by GitHub
parent 57cf4fc846
commit aee8ea8b10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 10 deletions

View file

@ -701,6 +701,15 @@ void NativeWindowViews::Minimize() {
}
void NativeWindowViews::Restore() {
#if BUILDFLAG(IS_WIN)
if (IsMaximized() && transparent()) {
SetBounds(restore_bounds_, false);
NotifyWindowRestore();
UpdateThickFrame();
return;
}
#endif
widget()->Restore();
#if BUILDFLAG(IS_WIN)