From 1d00436ea4ba499dd473132fd08c6c179279b937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 17 Apr 2012 01:24:28 +0200 Subject: [PATCH] fix off-by-one on checkUnrestrictedMoveResize BUG: 210926 FIXED-IN: 4.9 REVIEW: 104632 --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index 92a23e311b..6cb6f8ab28 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2684,10 +2684,10 @@ void Client::checkUnrestrictedMoveResize() unrestrictedMoveResize = true; } if (isMove()) { - if (moveResizeGeom.bottom() < desktopArea.top() + titlebar_marge - 1) // titlebar mustn't go out + if (moveResizeGeom.bottom() < desktopArea.top() + titlebar_marge - 1) unrestrictedMoveResize = true; // no need to check top_marge, titlebar_marge already handles it - if (moveResizeGeom.top() > desktopArea.bottom() - bottom_marge) + if (moveResizeGeom.top() > desktopArea.bottom() - bottom_marge + 1) // titlebar mustn't go out unrestrictedMoveResize = true; if (moveResizeGeom.right() < desktopArea.left() + left_marge) unrestrictedMoveResize = true;