all repos — fluxbox @ 54eda44f852e69d52e86133891be55abac479887

custom fork of the fluxbox windowmanager

fix menuitem height on startup
Mark Tiefenbruck mark@fluxbox.org
commit

54eda44f852e69d52e86133891be55abac479887

parent

aef3155784f11d2a7238f314049228e46080374e

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M src/FbTk/MenuTheme.ccsrc/FbTk/MenuTheme.cc

@@ -79,19 +79,19 @@ m_delayclose(0), // no delay as default

m_real_title_height(*m_title_height), m_real_item_height(*m_item_height) { - m_real_item_height = std::max(*m_item_height, frameFont().height() + 2*bevelWidth()); - m_real_title_height = std::max(*m_title_height, - titleFont().height() + 2*bevelWidth()); - - m_real_item_height = m_real_item_height == 0 ? 1 : m_real_item_height; - m_real_title_height = m_real_title_height == 0 ? 1 : m_real_title_height; - // set default values *m_border_width = 0; *m_bevel_width = 0; *m_border_width = 0; ThemeManager::instance().loadTheme(*this); + + m_real_item_height = std::max(*m_item_height, frameFont().height() + 2*bevelWidth()); + m_real_title_height = std::max(*m_title_height, + titleFont().height() + 2*bevelWidth()); + + m_real_item_height = m_real_item_height == 0 ? 1 : m_real_item_height; + m_real_title_height = m_real_title_height == 0 ? 1 : m_real_title_height; t_text_gc.setForeground(*t_text); f_text_gc.setForeground(*f_text);