Author: leavengood Date: Mon Dec 27 18:08:35 2010 New Revision: 554 URL: http://webpositive.haiku-os.org/changeset/554 Log: Make the default location for the download window the lower right corner of screen, like NetPositive. Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp Mon Dec 13 01:36:52 2010 (r553) +++ webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp Mon Dec 27 18:08:35 2010 (r554) @@ -152,8 +152,15 @@ #endif fLastWindowFrame = fSettings->GetValue("window frame", fLastWindowFrame); + // Put download window in lower right of screen. 375 is about the minimum + // width with the default layout. + BRect defaultDownloadWindowFrame(0, 0, 375, 275); + BRect screenFrame = BScreen().Frame(); + // The extra 5 pixels is for the decorator frame + defaultDownloadWindowFrame.OffsetTo(screenFrame.Width() - defaultDownloadWindowFrame.Width() - 5, + screenFrame.Height() - defaultDownloadWindowFrame.Height() - 5); BRect downloadWindowFrame = fSettings->GetValue("downloads window frame", - BRect(100, 100, 300, 250)); + defaultDownloadWindowFrame); BRect settingsWindowFrame = fSettings->GetValue("settings window frame", BRect()); bool showDownloads = fSettings->GetValue("show downloads", false);