remove some more useless code
This commit is contained in:
parent
518af23488
commit
a9fd0f5b26
3 changed files with 8 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue