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
2 changed files with 8 additions and 5 deletions
+7 -5
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();