mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1105939 part 2 - Suppress windows animation when hiding chrome on OS X. r=smichaud
This commit is contained in:
parent
0ac36879bd
commit
2779731fba
@ -1252,7 +1252,10 @@ NS_IMETHODIMP nsCocoaWindow::HideWindowChrome(bool aShouldHide)
|
||||
|
||||
// Show the new window.
|
||||
if (isVisible) {
|
||||
bool wasAnimationSuppressed = mIsAnimationSuppressed;
|
||||
mIsAnimationSuppressed = true;
|
||||
rv = Show(true);
|
||||
mIsAnimationSuppressed = wasAnimationSuppressed;
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user