diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-29 22:10:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-29 22:10:28 +0000 |
| commit | 98f05a5c962c1f0a4d418d30f45f219ef4d9c200 (patch) | |
| tree | e2dea1c25eb72bcf00ebfe401a58d4df8b6664f8 /src/frame.cc | |
| parent | 6236b523e87e8bc4f013844f52170cc415e2093c (diff) | |
let the user remove client decorations.
Diffstat (limited to 'src/frame.cc')
| -rw-r--r-- | src/frame.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frame.cc b/src/frame.cc index 20e65932..06b263d8 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -128,7 +128,8 @@ void Frame::adjustSize() int width; // the width of the client and its border int bwidth; // width to make borders int cbwidth; // width of the inner client border - int butsize=0; // width and height of the titlebar buttons + int fontheight = _style->labelFont()->height(); // height of the font + int butsize = fontheight - 2; // width and height of the titlebar buttons const int bevel = _style->bevelWidth(); if (_decorations & Client::Decor_Border) { @@ -157,9 +158,8 @@ void Frame::adjustSize() _innersize.top += _titlebar.height() + bwidth; // set the label size - _label.setGeometry(0, bevel, width, _style->labelFont()->height()); + _label.setGeometry(0, bevel, width, fontheight); // set the buttons sizes - butsize = _label.height() - 2; if (_decorations & Client::Decor_Iconify) _button_iconify.setGeometry(0, bevel + 1, butsize, butsize); if (_decorations & Client::Decor_Maximize) |
