From a9fd0f5b26860c2227ac6169039332a00e65cc01 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sun, 11 May 2008 08:54:18 -0700 Subject: remove some more useless code --- src/FbCommands.cc | 2 +- src/fluxbox.cc | 26 +++++--------------------- src/fluxbox.hh | 6 ++---- 3 files changed, 8 insertions(+), 26 deletions(-) diff --git a/src/FbCommands.cc b/src/FbCommands.cc index cb55469..91490d3 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -80,7 +80,7 @@ void showMenu(const BScreen &screen, FbTk::Menu &menu) { // we dont show the menu here because fluxbox // will bring up the rootmenu after the timed // reread of the menu - fb->rereadMenu(true); + fb->rereadMenu(); return; } } diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 300d683..d765d3c 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -399,7 +399,7 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile //XSynchronize(disp, False); sync(false); - m_reconfigure_wait = m_reread_menu_wait = false; + m_reconfigure_wait = false; m_resourcemanager.unlock(); ungrab(); @@ -1484,28 +1484,15 @@ bool Fluxbox::menuTimestampsChanged() const { return false; } -void Fluxbox::rereadMenu(bool show_after_reread) { - m_reread_menu_wait = true; - m_show_menu_after_reread = show_after_reread; - m_reconfig_timer.start(); -} - - -void Fluxbox::real_rereadMenu() { - +void Fluxbox::rereadMenu() { clearMenuFilenames(); for_each(m_screen_list.begin(), m_screen_list.end(), mem_fun(&BScreen::rereadMenu)); - if(m_show_menu_after_reread) { - - FbCommands::ShowRootMenuCmd showcmd; - showcmd.execute(); - - m_show_menu_after_reread = false; - } + FbCommands::ShowRootMenuCmd showcmd; + showcmd.execute(); } void Fluxbox::saveMenuFilename(const char *filename) { @@ -1546,10 +1533,7 @@ void Fluxbox::timed_reconfigure() { if (m_reconfigure_wait) real_reconfigure(); - if (m_reread_menu_wait) - real_rereadMenu(); - - m_reconfigure_wait = m_reread_menu_wait = false; + m_reconfigure_wait = false; } void Fluxbox::revertFocus() { diff --git a/src/fluxbox.hh b/src/fluxbox.hh index d930ad1..e7c7556 100644 --- a/src/fluxbox.hh +++ b/src/fluxbox.hh @@ -149,7 +149,7 @@ public: void removeGroupSearch(Window win); void restart(const char *command = 0); void reconfigure(); - void rereadMenu(bool show_after_reread = false); + void rereadMenu(); /// reloads the menus if the timestamps changed /// handle any system signal sent to the application @@ -201,7 +201,6 @@ private: std::string getRcFilename(); void load_rc(); - void real_rereadMenu(); void real_reconfigure(); void handleEvent(XEvent *xe); @@ -251,7 +250,7 @@ private: Atom m_fluxbox_pid; - bool m_reconfigure_wait, m_reread_menu_wait; + bool m_reconfigure_wait; Time m_last_time; Window m_masked; std::string m_rc_file; ///< resource filename @@ -279,7 +278,6 @@ private: bool m_starting; bool m_restarting; bool m_shutdown; - bool m_show_menu_after_reread; int m_server_grabs; int m_randr_event_type; ///< the type number of randr event int m_shape_eventbase; ///< event base for shape events -- cgit v0.11.2