aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-02-07 09:13:43 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-02-07 09:13:43 (GMT)
commit9814549fb35f4f518ef6f4c75d4f092ac9ec3b7f (patch)
tree85ee5162cb7e3b3ccf77626e721f535c6aca81b0 /src
parent17bd8063372c25b67f43571044ba76b276c12ab5 (diff)
downloadfluxbox-9814549fb35f4f518ef6f4c75d4f092ac9ec3b7f.zip
fluxbox-9814549fb35f4f518ef6f4c75d4f092ac9ec3b7f.tar.bz2
Show toggleitems in menu
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/MenuItem.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc
index 7890188..172725d 100644
--- a/src/FbTk/MenuItem.cc
+++ b/src/FbTk/MenuItem.cc
@@ -207,12 +207,14 @@ void MenuItem::draw(FbDrawable &draw,
207 if (theme->bulletPos() == FbTk::RIGHT) 207 if (theme->bulletPos() == FbTk::RIGHT)
208 sel_x += static_cast<int>(width) - h - bevel; 208 sel_x += static_cast<int>(width) - h - bevel;
209 209
210 // selected pixmap is foreground
211 if (draw_foreground && isToggleItem()) {
212 210
213 // 211 // 'draw_foreground' was used to decide if to draw the toggleitem.
214 // ToggleItem 212 // somehow(tm) this lead to not rendering the toggleitem on bringing
215 // 213 // up the menu. it would be rendered once the user highlights the item,
214 // but not before. i removed the check against 'draw_foreground' and
215 // thus make it an unused variable.
216 if (isToggleItem()) {
217
216 const PixmapWithMask *pm = 0; 218 const PixmapWithMask *pm = 0;
217 219
218 if (isSelected()) { 220 if (isSelected()) {