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:
stippi 2010-05-19 22:41:36 +00:00 committed by Alexandre Deckner
parent af7e6dd1a4
commit f94d5e2800
3 changed files with 14 additions and 2 deletions

View File

@ -253,7 +253,7 @@ BrowserApp::QuitRequested()
if (!webWindow->Lock())
continue;
if (webWindow->QuitRequested()) {
fLastWindowFrame = webWindow->Frame();
fLastWindowFrame = webWindow->WindowFrame();
webWindow->Quit();
i--;
} else {

View File

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

View File

@ -107,6 +107,8 @@ public:
void CreateNewTab(const BString& url, bool select,
BWebView* webView = 0);
BRect WindowFrame() const;
private:
// WebPage notification API implementations
virtual void NavigationRequested(const BString& url,