diff options
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 4eabae2..3a09b69 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -73,11 +73,11 @@ namespace { | |||
73 | 73 | ||
74 | void showMenu(const BScreen &screen, FbTk::Menu &menu) { | 74 | void showMenu(const BScreen &screen, FbTk::Menu &menu) { |
75 | 75 | ||
76 | // special case for root menu | 76 | // check if menu has changed |
77 | if (&menu == &screen.rootMenu()) { | 77 | if (typeid(menu) == typeid(FbMenu)) { |
78 | Fluxbox* fb = Fluxbox::instance(); | 78 | FbMenu *fbmenu = static_cast<FbMenu *>(&menu); |
79 | if(fb->menuTimestampsChanged()) | 79 | if (fbmenu->reloadHelper()) |
80 | fb->rereadMenu(); | 80 | fbmenu->reloadHelper()->checkReload(); |
81 | } | 81 | } |
82 | 82 | ||
83 | Window root_ret; // not used | 83 | Window root_ret; // not used |