mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 126730 - "full screen: problem with maximize/fullscreen/restore (still broken on Linux)" [p=dennis.mckenzie@sympatico.ca (Dennis McKenzie) r+sr+a1.9=roc]
This commit is contained in:
parent
e3caba8762
commit
50c5641cad
@ -4041,10 +4041,10 @@ nsWindow::MakeFullScreen(PRBool aFullScreen)
|
||||
gdk_window_fullscreen (mShell->window);
|
||||
else
|
||||
gdk_window_unfullscreen (mShell->window);
|
||||
return NS_OK;
|
||||
#else
|
||||
HideWindowChrome(aFullScreen);
|
||||
return nsBaseWidget::MakeFullScreen(aFullScreen);
|
||||
#endif
|
||||
return MakeFullScreenInternal(aFullScreen);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -561,11 +561,7 @@ NS_IMETHODIMP nsBaseWidget::HideWindowChrome(PRBool aShouldHide)
|
||||
NS_IMETHODIMP nsBaseWidget::MakeFullScreen(PRBool aFullScreen)
|
||||
{
|
||||
HideWindowChrome(aFullScreen);
|
||||
return MakeFullScreenInternal(aFullScreen);
|
||||
}
|
||||
|
||||
nsresult nsBaseWidget::MakeFullScreenInternal(PRBool aFullScreen)
|
||||
{
|
||||
nsCOMPtr<nsIFullScreen> fullScreen = do_GetService("@mozilla.org/browser/fullscreen;1");
|
||||
|
||||
if (aFullScreen) {
|
||||
|
@ -107,7 +107,6 @@ public:
|
||||
NS_IMETHOD GetHasTransparentBackground(PRBool& aTransparent);
|
||||
NS_IMETHOD HideWindowChrome(PRBool aShouldHide);
|
||||
NS_IMETHOD MakeFullScreen(PRBool aFullScreen);
|
||||
nsresult MakeFullScreenInternal(PRBool aFullScreen);
|
||||
virtual nsIRenderingContext* GetRenderingContext();
|
||||
virtual nsIDeviceContext* GetDeviceContext();
|
||||
virtual nsIToolkit* GetToolkit();
|
||||
|
Loading…
Reference in New Issue
Block a user