Bug 1350875 part 3 - Have GTK notify fullscreen will change. r=karlt

Differential Revision: https://phabricator.services.mozilla.com/D68680

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Xidorn Quan 2020-04-02 21:42:41 +00:00
Родитель 68303a274a
Коммит 2dcd9a0339
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -5715,6 +5715,11 @@ nsresult nsWindow::MakeFullScreen(bool aFullScreen, nsIScreen* aTargetScreen) {
return NS_ERROR_NOT_AVAILABLE; return NS_ERROR_NOT_AVAILABLE;
} }
bool wasFullscreen = mSizeState == nsSizeMode_Fullscreen;
if (aFullScreen != wasFullscreen && mWidgetListener) {
mWidgetListener->FullscreenWillChange(aFullScreen);
}
if (aFullScreen) { if (aFullScreen) {
if (mSizeMode != nsSizeMode_Fullscreen) mLastSizeMode = mSizeMode; if (mSizeMode != nsSizeMode_Fullscreen) mLastSizeMode = mSizeMode;