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:
reed@reedloden.com 2008-01-04 21:34:00 -08:00
parent e3caba8762
commit 50c5641cad
3 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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();