From 842aebe7eb1eb68855f41d175bad361208f4afa2 Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Wed, 24 Jul 2024 18:46:19 +0200 Subject: [PATCH] When LimitPosition is false, you can drag maximized windows off-screen and closes issue #780. --- src/movesize.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/movesize.cc b/src/movesize.cc index 9bbc69a6e..aca6c1c13 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()) { + if (EdgeResistance == 10000 || (isMaximizedHoriz() && limitPosition)) { if (newX + int(width()) + n * borderX() > Mx) newX = Mx - int(width()) - n * borderX(); if (newX < mx) newX = mx; } - if (EdgeResistance == 10000 || isMaximizedVert()) { + if (EdgeResistance == 10000 || (isMaximizedVert() && limitPosition)) { if (newY + int(height()) + n * borderY() > My) newY = My - int(height()) - n * borderY(); if (newY < my)