X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=8a6c1b11df7fd328c11f8458335fb1e3cb42e97b;hb=506b5dbf6f2624df57f09b5c7ba15098b1590cd5;hp=07d754624ad29aacbb4b635d52d54e3548ec6572;hpb=52cb7bd11ed83a57c4c1affcdac8a1f7d68ae551;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index 07d75462..8a6c1b11 100644 --- a/src/client.cc +++ b/src/client.cc @@ -26,6 +26,7 @@ namespace ob { OBClient::OBClient(int screen, Window window) : otk::OtkEventHandler(), + OBWidget(OBWidget::Type_Client), frame(0), _screen(screen), _window(window) { assert(screen >= 0); @@ -777,6 +778,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()) {