mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out changeset 71d0179e0ad9 (bug 634586)
This commit is contained in:
parent
db0e06d061
commit
32ab4d0dad
@ -4407,19 +4407,8 @@ nsGlobalWindow::SetFullScreen(PRBool aFullScreen)
|
||||
mFullScreen = aFullScreen;
|
||||
|
||||
nsCOMPtr<nsIWidget> widget = GetMainWidget();
|
||||
if (widget) {
|
||||
PRBool visible;
|
||||
widget->IsVisible(visible);
|
||||
if (visible && aFullScreen)
|
||||
widget->Show(PR_FALSE);
|
||||
if (widget)
|
||||
widget->MakeFullScreen(aFullScreen);
|
||||
if (visible && aFullScreen) {
|
||||
widget->Show(PR_TRUE);
|
||||
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
|
||||
if (fm)
|
||||
fm->SetActiveWindow(this);
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user