From ab1211cbefb34fa1182b9b8c728ac3e714b25e88 Mon Sep 17 00:00:00 2001 From: Ckat Date: Sun, 3 Oct 2021 09:43:23 +0000 Subject: [PATCH] Ignore out of bounds check on tiling WMs (#3270) --- CHANGELOG.md | 1 + src/singletons/WindowManager.cpp | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41af9f89..927e2863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/singletons/WindowManager.cpp b/src/singletons/WindowManager.cpp index 254b8b76..83641c94 100644 --- a/src/singletons/WindowManager.cpp +++ b/src/singletons/WindowManager.cpp @@ -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();