bugfix: submenus didn't hide if a delay was set use the FbTk::Timer API correctly, bug(s) introduced by 1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f e68511794130388ab9668fdef0dcf48dbbf002fd
Mathias Gumz akira at fluxbox dot org
2 files changed,
3 insertions(+),
3 deletions(-)
M
src/AttentionNoticeHandler.cc
→
src/AttentionNoticeHandler.cc
@@ -82,7 +82,7 @@ // setup timer
RefCount<Command<void> > cmd(new ToggleFrameFocusCmd(client)); Timer *timer = new Timer(); timer->setCommand(cmd); - timer->setTimeout(0, **timeout_res * 1000); + timer->setTimeout(**timeout_res); timer->fireOnce(false); // will repeat until window has focus timer->start();
M
src/FbTk/Menu.cc
→
src/FbTk/Menu.cc
@@ -1002,7 +1002,7 @@
} if (itmp->submenu()) { // start submenu open delay - m_submenu_timer.setTimeout(0, theme()->getDelay() * 1000); + m_submenu_timer.setTimeout(theme()->getDelay()); m_submenu_timer.start(); } else if (isItemSelectable(w)){ // else normal menu item@@ -1221,7 +1221,7 @@ internal_hide();
} void Menu::startHide() { - m_hide_timer.setTimeout(theme()->getDelay() * 1000); + m_hide_timer.setTimeout(theme()->getDelay()); m_hide_timer.start(); }