From 029acf6821f034583700c26b013ffc67ad7690f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81ukasik?= Date: Sun, 14 Aug 2016 15:17:04 +0200 Subject: Imported Upstream version 16.8.0~ds0 --- src/defaultgui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/defaultgui.cpp') 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()); } } -- cgit v1.2.3