centered gravities lose one borderwidth when mapping too
This commit is contained in:
parent
619ad666fc
commit
2b0897234f
1 changed files with 6 additions and 6 deletions
|
@ -780,9 +780,6 @@ void Client::toggleClientBorder(bool addborder)
|
||||||
case NorthWestGravity:
|
case NorthWestGravity:
|
||||||
case WestGravity:
|
case WestGravity:
|
||||||
case SouthWestGravity:
|
case SouthWestGravity:
|
||||||
case NorthGravity:
|
|
||||||
case CenterGravity:
|
|
||||||
case SouthGravity:
|
|
||||||
break;
|
break;
|
||||||
case NorthEastGravity:
|
case NorthEastGravity:
|
||||||
case EastGravity:
|
case EastGravity:
|
||||||
|
@ -790,6 +787,9 @@ void Client::toggleClientBorder(bool addborder)
|
||||||
if (addborder) x -= _border_width * 2;
|
if (addborder) x -= _border_width * 2;
|
||||||
else x += _border_width * 2;
|
else x += _border_width * 2;
|
||||||
break;
|
break;
|
||||||
|
case NorthGravity:
|
||||||
|
case SouthGravity:
|
||||||
|
case CenterGravity:
|
||||||
case ForgetGravity:
|
case ForgetGravity:
|
||||||
case StaticGravity:
|
case StaticGravity:
|
||||||
if (addborder) x -= _border_width;
|
if (addborder) x -= _border_width;
|
||||||
|
@ -799,11 +799,8 @@ void Client::toggleClientBorder(bool addborder)
|
||||||
switch(_gravity) {
|
switch(_gravity) {
|
||||||
default:
|
default:
|
||||||
case NorthWestGravity:
|
case NorthWestGravity:
|
||||||
case WestGravity:
|
|
||||||
case NorthGravity:
|
case NorthGravity:
|
||||||
case CenterGravity:
|
|
||||||
case NorthEastGravity:
|
case NorthEastGravity:
|
||||||
case EastGravity:
|
|
||||||
break;
|
break;
|
||||||
case SouthWestGravity:
|
case SouthWestGravity:
|
||||||
case SouthGravity:
|
case SouthGravity:
|
||||||
|
@ -811,6 +808,9 @@ void Client::toggleClientBorder(bool addborder)
|
||||||
if (addborder) y -= _border_width * 2;
|
if (addborder) y -= _border_width * 2;
|
||||||
else y += _border_width * 2;
|
else y += _border_width * 2;
|
||||||
break;
|
break;
|
||||||
|
case WestGravity:
|
||||||
|
case EastGravity:
|
||||||
|
case CenterGravity:
|
||||||
case ForgetGravity:
|
case ForgetGravity:
|
||||||
case StaticGravity:
|
case StaticGravity:
|
||||||
if (addborder) y -= _border_width;
|
if (addborder) y -= _border_width;
|
||||||
|
|
Loading…
Reference in a new issue