diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-03 05:38:40 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-03 05:38:40 +0000 |
| commit | 36d8e0c6c49cb276cfa05e490a83356b4bcbefe0 (patch) | |
| tree | 744d89c94c7d8d0f42e0d06ea5b22b0551bde7b8 | |
| parent | a77f0fb344978bb4dafd2ad4639f3de3e090bf7b (diff) | |
i dont know what i fixed but here it is
| -rw-r--r-- | src/frame.cc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/frame.cc b/src/frame.cc index 40b9b9c6..f1017d0e 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -121,21 +121,18 @@ void OBFrame::adjust() _decorations = _client->decorations(); _decorations = 0xffffffff; - int width; // the width of the client window and the border around it + int width; // the width of the whole frame int bwidth; // width to make borders int cbwidth; // width of the inner client border if (_decorations & OBClient::Decor_Border) { bwidth = _style->getBorderWidth(); cbwidth = _style->getFrameWidth(); - _size.left = _size.top = _size.bottom = _size.right = - _style->getFrameWidth(); - width = _client->area().width() + _style->getFrameWidth() * 2; - } else { + } else bwidth = cbwidth = 0; - _size.left = _size.top = _size.bottom = _size.right = 0; - width = _client->area().width(); - } + _size.left = _size.top = _size.bottom = _size.right = bwidth + cbwidth; + width = _client->area().width() + (bwidth + cbwidth) * 2; + XSetWindowBorderWidth(otk::OBDisplay::display, _plate.getWindow(), cbwidth); XSetWindowBorderWidth(otk::OBDisplay::display, getWindow(), bwidth); @@ -250,8 +247,8 @@ void OBFrame::adjust() resize(_size.left + _size.right + _client->area().width(), _size.top + _size.bottom + _client->area().height()); - _plate.setGeometry(_size.left, _size.top, _client->area().width(), - _client->area().height()); + _plate.setGeometry(_size.left - cbwidth, _size.top - cbwidth, + _client->area().width(), _client->area().height()); // map/unmap all the windows if (_decorations & OBClient::Decor_Titlebar) { |
