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
This commit is contained in:
Thomas Lübking 2013-07-18 15:59:37 +02:00
parent 93e2ce4bfd
commit 02ed20662d

View file

@ -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()) {