Don't store the last window frame with the full-screen window size...
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@505 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
committed by
Alexandre Deckner
parent
af7e6dd1a4
commit
f94d5e2800
@@ -846,7 +846,7 @@ BrowserWindow::QuitRequested()
|
||||
_ShutdownTab(0);
|
||||
|
||||
BMessage message(WINDOW_CLOSED);
|
||||
message.AddRect("window frame", Frame());
|
||||
message.AddRect("window frame", WindowFrame());
|
||||
be_app->PostMessage(&message);
|
||||
return true;
|
||||
}
|
||||
@@ -1018,6 +1018,16 @@ BrowserWindow::CreateNewTab(const BString& _url, bool select, BWebView* webView)
|
||||
}
|
||||
|
||||
|
||||
BRect
|
||||
BrowserWindow::WindowFrame() const
|
||||
{
|
||||
if (fIsFullscreen)
|
||||
return fNonFullscreenWindowFrame;
|
||||
else
|
||||
return Frame();
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark - Notification API
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user