mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 616793. Fullscreen toolbars fail to show on mouseover after browser window is minimized and restored. r=jimm a=blocking-final
This commit is contained in:
parent
69785033ee
commit
29806e9d19
@ -6227,11 +6227,9 @@ void nsWindow::OnWindowPosChanged(WINDOWPOS *wp, PRBool& result)
|
||||
::GetWindowPlacement(mWnd, &pl);
|
||||
|
||||
if (pl.showCmd == SW_SHOWMAXIMIZED)
|
||||
event.mSizeMode = nsSizeMode_Maximized;
|
||||
event.mSizeMode = (mFullscreenMode ? nsSizeMode_Fullscreen : nsSizeMode_Maximized);
|
||||
else if (pl.showCmd == SW_SHOWMINIMIZED)
|
||||
event.mSizeMode = nsSizeMode_Minimized;
|
||||
else if (mFullscreenMode)
|
||||
event.mSizeMode = nsSizeMode_Fullscreen;
|
||||
else
|
||||
event.mSizeMode = nsSizeMode_Normal;
|
||||
|
||||
@ -6397,11 +6395,9 @@ void nsWindow::OnWindowPosChanging(LPWINDOWPOS& info)
|
||||
::GetWindowPlacement(mWnd, &pl);
|
||||
PRInt32 sizeMode;
|
||||
if (pl.showCmd == SW_SHOWMAXIMIZED)
|
||||
sizeMode = nsSizeMode_Maximized;
|
||||
sizeMode = (mFullscreenMode ? nsSizeMode_Fullscreen : nsSizeMode_Maximized);
|
||||
else if (pl.showCmd == SW_SHOWMINIMIZED)
|
||||
sizeMode = nsSizeMode_Minimized;
|
||||
else if (mFullscreenMode)
|
||||
sizeMode = nsSizeMode_Fullscreen;
|
||||
else
|
||||
sizeMode = nsSizeMode_Normal;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user