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:
parent
af7e6dd1a4
commit
f94d5e2800
@ -253,7 +253,7 @@ BrowserApp::QuitRequested()
|
||||
if (!webWindow->Lock())
|
||||
continue;
|
||||
if (webWindow->QuitRequested()) {
|
||||
fLastWindowFrame = webWindow->Frame();
|
||||
fLastWindowFrame = webWindow->WindowFrame();
|
||||
webWindow->Quit();
|
||||
i--;
|
||||
} else {
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user