mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
changed screen out of bounds detection from contains() to intersects()
This commit is contained in:
parent
20e978ad85
commit
e095db87bc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue