1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Use desktop availableGeometry for default window size calculation

This commit is contained in:
David Rosca 2014-11-10 12:15:23 +01:00
parent 63b7e41713
commit 24ff9285f5

View File

@ -263,8 +263,8 @@ void BrowserWindow::setupUi()
int websearchBarWidth;
QDesktopWidget* desktop = mApp->desktop();
int windowWidth = desktop->width() / 1.3;
int windowHeight = desktop->height() / 1.3;
int windowWidth = desktop->availableGeometry().width() / 1.3;
int windowHeight = desktop->availableGeometry().height() / 1.3;
Settings settings;
settings.beginGroup("Browser-View-Settings");