diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-04 00:26:45 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-04 00:26:45 +0000 |
| commit | 1fa445c88033e564a25d907a7f478e76bff9e89e (patch) | |
| tree | cb39dff31461cccbeefafd2ae2007a31b3b8be2d /src/frame.cc | |
| parent | bbdfd8f1d6b46954f5611f245ee2c68aa2fe91ce (diff) | |
handle configure requests
Diffstat (limited to 'src/frame.cc')
| -rw-r--r-- | src/frame.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/frame.cc b/src/frame.cc index d991e454..725a4306 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -196,8 +196,13 @@ void OBFrame::adjust() // that the ONE LABEL!! // adds an extra sep so that there's a space on either side of the // titlebar.. note: x = sep, below. - _label.setWidth(width - sep * 2 - - (_button_iconify.width() + sep) * (layout.size() - 1)); + int lwidth = width - sep * 2 - + (_button_iconify.width() + sep) * (layout.size() - 1); + // quick sanity check for really small windows. if this is needed, its + // obviously not going to be displayed right... + // XXX: maybe we should make this look better somehow? constraints? + if (lwidth <= 0) lwidth = 1; + _label.setWidth(lwidth); int x = sep; for (int i = 0, len = layout.size(); i < len; ++i) { @@ -449,4 +454,10 @@ void OBFrame::applyGravity() } +void OBFrame::reverseGravity() +{ + move(_client->area().x() - _size.left, _client->area().y() - _size.top); +} + + } |
