aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceMenu.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2022-05-28 09:13:43 (GMT)
committerMathias Gumz <mgumz@users.noreply.github.com>2022-07-31 14:49:49 (GMT)
commit9d8202f32338a3f08d3fa39057dc5eec5d97be4e (patch)
tree85238fab1759c2b826affe6826ab00e81dd5a6ba /src/WorkspaceMenu.cc
parente2cbd179ecb2ef2d76e0ad1fde84b44325305799 (diff)
downloadfluxbox-9d8202f32338a3f08d3fa39057dc5eec5d97be4e.zip
fluxbox-9d8202f32338a3f08d3fa39057dc5eec5d97be4e.tar.bz2
Fix infinite loop in Menu::cycleitems()
When a menu contains no selectable item (example given: a "list" of user styles and the only available one is already selected), cycling through the menu will lead to an infinite loop and thus a disfunctional fluxbox. This commit addresses the issue by checking if there is any selectable item before entering the cycling stage. Discovered by Sébastien Ballet[1]. [1]: https://sourceforge.net/p/fluxbox/bugs/1185/
Diffstat (limited to 'src/WorkspaceMenu.cc')
0 files changed, 0 insertions, 0 deletions