all repos — fluxbox @ 9814549fb35f4f518ef6f4c75d4f092ac9ec3b7f

custom fork of the fluxbox windowmanager

Show toggleitems in menu
Mathias Gumz akira@fluxbox.org
commit

9814549fb35f4f518ef6f4c75d4f092ac9ec3b7f

parent

17bd8063372c25b67f43571044ba76b276c12ab5

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

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

@@ -207,12 +207,14 @@

if (theme->bulletPos() == FbTk::RIGHT) sel_x += static_cast<int>(width) - h - bevel; - // selected pixmap is foreground - if (draw_foreground && isToggleItem()) { - // - // ToggleItem - // + // 'draw_foreground' was used to decide if to draw the toggleitem. + // somehow(tm) this lead to not rendering the toggleitem on bringing + // up the menu. it would be rendered once the user highlights the item, + // but not before. i removed the check against 'draw_foreground' and + // thus make it an unused variable. + if (isToggleItem()) { + const PixmapWithMask *pm = 0; if (isSelected()) {