correctly remove client borders when mapping a window with NW gravity
authorDana Jansens <danakj@orodu.net>
Tue, 24 Dec 2002 08:28:03 +0000 (08:28 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 24 Dec 2002 08:28:03 +0000 (08:28 +0000)
src/client.cc

index 8a6c1b1..a0dc6d7 100644 (file)
@@ -674,8 +674,6 @@ void OBClient::toggleClientBorder(bool addborder)
   case NorthWestGravity:
   case WestGravity:
   case SouthWestGravity:
-    if (addborder) x += _border_width;
-    else           x -= _border_width;
     break;
   case NorthEastGravity:
   case EastGravity:
@@ -688,8 +686,6 @@ void OBClient::toggleClientBorder(bool addborder)
   case NorthWestGravity:
   case NorthGravity:
   case NorthEastGravity:
-    if (addborder) y += _border_width;
-    else           y -= _border_width;
     break;
   case SouthWestGravity:
   case SouthGravity: