From 3711e735ea9327243e54522bed4b035887344cfe Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Wed, 24 Jul 2024 22:54:35 +0200 Subject: [PATCH] Revert "When LimitPosition is false, you can drag maximized windows off-screen." --- src/movesize.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/movesize.cc b/src/movesize.cc index aca6c1c13..9bbc69a6e 100644 --- a/src/movesize.cc +++ b/src/movesize.cc @@ -365,13 +365,13 @@ void YFrameWindow::handleMoveMouse(const XMotionEvent &motion, int &newX, int &n newY += EdgeResistance; } } - if (EdgeResistance == 10000 || (isMaximizedHoriz() && limitPosition)) { + if (EdgeResistance == 10000 || isMaximizedHoriz()) { if (newX + int(width()) + n * borderX() > Mx) newX = Mx - int(width()) - n * borderX(); if (newX < mx) newX = mx; } - if (EdgeResistance == 10000 || (isMaximizedVert() && limitPosition)) { + if (EdgeResistance == 10000 || isMaximizedVert()) { if (newY + int(height()) + n * borderY() > My) newY = My - int(height()) - n * borderY(); if (newY < my)