aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbWinFrame.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index f23568b..ed28121 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrame.cc,v 1.37 2003/08/19 16:13:25 fluxgen Exp $ 22// $Id: FbWinFrame.cc,v 1.38 2003/08/22 15:20:32 fluxgen Exp $
23 23
24#include "FbWinFrame.hh" 24#include "FbWinFrame.hh"
25 25
@@ -707,10 +707,13 @@ void FbWinFrame::reconfigureTitlebar() {
707 return; 707 return;
708 708
709 // resize titlebar to window size with font height 709 // resize titlebar to window size with font height
710 int title_height = m_theme.font().height() == 0 ? 16 :
711 m_theme.font().height() + m_bevel*2 + 2;
712 if (m_theme.titleHeight() != 0)
713 title_height = m_theme.titleHeight();
714
710 m_titlebar.moveResize(-m_titlebar.borderWidth(), -m_titlebar.borderWidth(), 715 m_titlebar.moveResize(-m_titlebar.borderWidth(), -m_titlebar.borderWidth(),
711 m_window.width(), 716 m_window.width(), title_height);
712 m_theme.font().height() == 0 ? 16 :
713 m_theme.font().height() + m_bevel*2 + 2);
714 717
715 // draw left buttons first 718 // draw left buttons first
716 unsigned int next_x = m_bevel; 719 unsigned int next_x = m_bevel;