X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=a0dc6d76b159202ff0a7587f44a22689a891acf4;hb=fe55bb846db1933d8d6f023236298940cab441f8;hp=914672503178a16763503c5b1985dc6668fb3a89;hpb=77a8e11660edd66279f2d3def6de3768874ba780;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index 91467250..a0dc6d76 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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: @@ -778,6 +774,11 @@ void OBClient::resize(Corner anchor, int w, int h) w -= _base_size.x(); h -= _base_size.y(); + // for interactive resizing. have to move half an increment in each + // direction. + w += _size_inc.x() / 2; + h += _size_inc.y() / 2; + // is the window resizable? if it is not, then don't check its sizes, the // client can do what it wants and the user can't change it anyhow if (_min_size.x() <= _max_size.x() && _min_size.y() <= _max_size.y()) {