changed screen out of bounds detection from contains() to intersects()

This commit is contained in:
fourtf 2019-08-26 13:18:40 +02:00
parent 20e978ad85
commit e095db87bc

View file

@ -325,7 +325,7 @@ void WindowManager::initialize(Settings &settings, Paths &paths)
auto screens = qApp->screens(); auto screens = qApp->screens();
bool outOfBounds = std::none_of( bool outOfBounds = std::none_of(
screens.begin(), screens.end(), [&](QScreen *screen) { screens.begin(), screens.end(), [&](QScreen *screen) {
return screen->geometry().contains(geometry); return screen->availableGeometry().intersects(geometry);
}); });
// ask if move into bounds // ask if move into bounds