зеркало из https://github.com/mozilla/pjs.git
Bug 512529 - Automatically leave fullscreen mode when it seems appropriate; r=neil
This commit is contained in:
Родитель
e407eb6ec1
Коммит
1559092c84
|
@ -379,6 +379,9 @@ nsWebShellWindow::HandleEvent(nsGUIEvent *aEvent)
|
|||
if (modeEvent->mSizeMode == nsSizeMode_Fullscreen) {
|
||||
ourWindow->SetFullScreen(true);
|
||||
}
|
||||
else if (modeEvent->mSizeMode != nsSizeMode_Minimized) {
|
||||
ourWindow->SetFullScreen(false);
|
||||
}
|
||||
|
||||
// And always fire a user-defined sizemodechange event on the window
|
||||
ourWindow->DispatchCustomEvent("sizemodechange");
|
||||
|
|
Загрузка…
Ссылка в новой задаче