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
@@ -253,7 +253,7 @@ BrowserApp::QuitRequested()
|
|||||||
if (!webWindow->Lock())
|
if (!webWindow->Lock())
|
||||||
continue;
|
continue;
|
||||||
if (webWindow->QuitRequested()) {
|
if (webWindow->QuitRequested()) {
|
||||||
fLastWindowFrame = webWindow->Frame();
|
fLastWindowFrame = webWindow->WindowFrame();
|
||||||
webWindow->Quit();
|
webWindow->Quit();
|
||||||
i--;
|
i--;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -846,7 +846,7 @@ BrowserWindow::QuitRequested()
|
|||||||
_ShutdownTab(0);
|
_ShutdownTab(0);
|
||||||
|
|
||||||
BMessage message(WINDOW_CLOSED);
|
BMessage message(WINDOW_CLOSED);
|
||||||
message.AddRect("window frame", Frame());
|
message.AddRect("window frame", WindowFrame());
|
||||||
be_app->PostMessage(&message);
|
be_app->PostMessage(&message);
|
||||||
return true;
|
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
|
// #pragma mark - Notification API
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,8 @@ public:
|
|||||||
void CreateNewTab(const BString& url, bool select,
|
void CreateNewTab(const BString& url, bool select,
|
||||||
BWebView* webView = 0);
|
BWebView* webView = 0);
|
||||||
|
|
||||||
|
BRect WindowFrame() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// WebPage notification API implementations
|
// WebPage notification API implementations
|
||||||
virtual void NavigationRequested(const BString& url,
|
virtual void NavigationRequested(const BString& url,
|
||||||
|
|||||||
Reference in New Issue
Block a user