aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-22 15:20:32 (GMT)
committerfluxgen <fluxgen>2003-08-22 15:20:32 (GMT)
commitf9058a548028f7505022b56b260342bef75daaff (patch)
tree092e3b909b4ea9b8150878da15c03a11053fc484 /src
parentad0cadcc04895073cff9518daa51c5fcea418777 (diff)
downloadfluxbox-f9058a548028f7505022b56b260342bef75daaff.zip
fluxbox-f9058a548028f7505022b56b260342bef75daaff.tar.bz2
fixed theme height
Diffstat (limited to 'src')
-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;