Ignore out of bounds check on tiling WMs (#3270)

This commit is contained in:
Ckat 2021-10-03 09:43:23 +00:00 committed by GitHub
parent 0ba7c0f3c5
commit ab1211cbef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View file

@ -19,6 +19,7 @@
- Minor: Strip leading @ and trailing , from username in `/popout` command. (#3217)
- Minor: Added `flags.reward_message` filter variable (#3231)
- Minor: Added highlights for first messages (#3267)
- Minor: Ignore out of bounds check for tiling wms (#3270)
- Bugfix: Fixed colored usernames sometimes not working. (#3170)
- Bugfix: Restored ability to send duplicate `/me` messages. (#3166)
- Bugfix: Notifications for moderators about other moderators deleting messages can now be disabled. (#3121)

View file

@ -684,11 +684,13 @@ void WindowManager::applyWindowLayout(const WindowLayout &layout)
{
// out of bounds windows
auto screens = qApp->screens();
bool outOfBounds = std::none_of(
screens.begin(), screens.end(), [&](QScreen *screen) {
return screen->availableGeometry().intersects(
windowData.geometry_);
});
bool outOfBounds =
!getenv("I3SOCK") &&
std::none_of(screens.begin(), screens.end(),
[&](QScreen *screen) {
return screen->availableGeometry().intersects(
windowData.geometry_);
});
// ask if move into bounds
auto &&should = shouldMoveOutOfBoundsWindow();