mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1168274 part 1 - Avoid triggering window reflow for hiding margins when entering fullscreen on Windows. r=jimm
This commit is contained in:
parent
77646296c3
commit
ab696ade93
@ -2868,7 +2868,9 @@ nsWindow::MakeFullScreen(bool aFullScreen, nsIScreen* aTargetScreen)
|
||||
SetSizeMode(mOldSizeMode);
|
||||
}
|
||||
|
||||
UpdateNonClientMargins();
|
||||
// If we are going fullscreen, the window size continues to change
|
||||
// and the window will be reflow again then.
|
||||
UpdateNonClientMargins(mSizeMode, /* Reflow */ !aFullScreen);
|
||||
|
||||
bool visible = mIsVisible;
|
||||
if (mOldSizeMode == nsSizeMode_Normal)
|
||||
|
Loading…
Reference in New Issue
Block a user