From e095db87bc827cb126f69c13088a3ddd58751377 Mon Sep 17 00:00:00 2001 From: fourtf Date: Mon, 26 Aug 2019 13:18:40 +0200 Subject: [PATCH] changed screen out of bounds detection from contains() to intersects() --- src/singletons/WindowManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/singletons/WindowManager.cpp b/src/singletons/WindowManager.cpp index 6861d939d..5fb1fe6bd 100644 --- a/src/singletons/WindowManager.cpp +++ b/src/singletons/WindowManager.cpp @@ -325,7 +325,7 @@ void WindowManager::initialize(Settings &settings, Paths &paths) auto screens = qApp->screens(); bool outOfBounds = std::none_of( screens.begin(), screens.end(), [&](QScreen *screen) { - return screen->geometry().contains(geometry); + return screen->availableGeometry().intersects(geometry); }); // ask if move into bounds