all repos — openbox @ 2b0897234fe041bac66c28f4a3b75d67d55991d7

openbox fork - make it a bit more like ryudo

centered gravities lose one borderwidth when mapping too
Dana Jansens danakj@orodu.net
commit

2b0897234fe041bac66c28f4a3b75d67d55991d7

parent

619ad666fc3091a2ec022cbe4d829123ee94398b

1 files changed, 6 insertions(+), 6 deletions(-)

jump to
M src/client.ccsrc/client.cc

@@ -780,9 +780,6 @@ default:

case NorthWestGravity: case WestGravity: case SouthWestGravity: - case NorthGravity: - case CenterGravity: - case SouthGravity: break; case NorthEastGravity: case EastGravity:

@@ -790,6 +787,9 @@ case SouthEastGravity:

if (addborder) x -= _border_width * 2; else x += _border_width * 2; break; + case NorthGravity: + case SouthGravity: + case CenterGravity: case ForgetGravity: case StaticGravity: if (addborder) x -= _border_width;

@@ -799,11 +799,8 @@ }

switch(_gravity) { default: case NorthWestGravity: - case WestGravity: case NorthGravity: - case CenterGravity: case NorthEastGravity: - case EastGravity: break; case SouthWestGravity: case SouthGravity:

@@ -811,6 +808,9 @@ case SouthEastGravity:

if (addborder) y -= _border_width * 2; else y += _border_width * 2; break; + case WestGravity: + case EastGravity: + case CenterGravity: case ForgetGravity: case StaticGravity: if (addborder) y -= _border_width;