diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2016-08-14 15:17:04 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2016-08-14 15:17:04 +0200 |
commit | 029acf6821f034583700c26b013ffc67ad7690f7 (patch) | |
tree | fe65dfdc621b61036af67ea03b37aba0534bb485 /src/defaultgui.cpp | |
parent | 7b04f55feb0d50e03d013b2be0ec555d363a40b2 (diff) |
Imported Upstream version 16.8.0~ds0
Diffstat (limited to 'src/defaultgui.cpp')
-rw-r--r-- | src/defaultgui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/defaultgui.cpp b/src/defaultgui.cpp index bb9e27f..a6a7a39 100644 --- a/src/defaultgui.cpp +++ b/src/defaultgui.cpp @@ -1006,8 +1006,9 @@ void DefaultGui::loadConfig() { setWindowState( (Qt::WindowStates) set->value("state", 0).toInt() ); if (!DesktopInfo::isInsideScreen(this)) { - move(0,0); - qWarning("DefaultGui::loadConfig: window is outside of the screen, moved to 0x0"); + QPoint tl = DesktopInfo::topLeftPrimaryScreen(); + move(tl); + qWarning("DefaultGui::loadConfig: window is outside of the screen, moved to %d x %d", tl.x(), tl.y()); } } |