From 02ed20662dd7904acfaebd8b7c4b777b7c3dfb07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 18 Jul 2013 15:59:37 +0200 Subject: [PATCH] prevent shrinking away titlebar f. bottom corners it's the same condition as shriking away from plain edges (one can resize exclusively in that direction as well) REVIEW: 111573 --- geometry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index 0176abd42a..d17513f30e 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2874,6 +2874,7 @@ void Client::handleMoveResize(int x, int y, int x_root, int y_root) // we are trying to resize in from the side? bool breakLoop = false; switch(mode) { + case PositionBottomLeft: case PositionTopLeft: case PositionLeft: if (previousMoveResizeGeom.x() >= moveResizeGeom.x()) { @@ -2882,6 +2883,7 @@ void Client::handleMoveResize(int x, int y, int x_root, int y_root) } moveResizeGeom.setLeft(moveResizeGeom.x() - 1); break; + case PositionBottomRight: case PositionTopRight: case PositionRight: if (previousMoveResizeGeom.right() <= moveResizeGeom.right()) {