fix off-by-one on checkUnrestrictedMoveResize
BUG: 210926 FIXED-IN: 4.9 REVIEW: 104632
This commit is contained in:
parent
92939b13d7
commit
1d00436ea4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue