From a56492c0d538c9c3a019812558938df0b6afedeb Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Mon, 12 May 2008 09:30:13 -0700 Subject: some minor changes --- src/Remember.cc | 9 ++++++--- src/Remember.hh | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Remember.cc b/src/Remember.cc index 825a070..2bd691f 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -120,7 +120,7 @@ public: void click(int button, int time, unsigned int mods) { // reconfigure only does stuff if the apps file has changed - Remember::instance().reconfigure(); + Remember::instance().checkReload(); if (WindowCmd::window() != 0) { if (isSelected()) { Remember::instance().forgetAttrib(WindowCmd::window()->winClient(), m_attrib); @@ -580,6 +580,9 @@ Application *Remember::findMatchingPatterns(ClientPattern *pat, Patterns *patlis void Remember::reconfigure() { m_reloader.setMainFile(Fluxbox::instance()->getAppsFilename()); +} + +void Remember::checkReload() { m_reloader.checkReload(); } @@ -1214,7 +1217,7 @@ void Remember::setupClient(WinClient &winclient) { return; // check if apps file has changed - reconfigure(); + checkReload(); Application *app = find(winclient); if (app == 0) @@ -1249,7 +1252,7 @@ FluxboxWindow *Remember::findGroup(Application *app, BScreen &screen) { } void Remember::updateClientClose(WinClient &winclient) { - reconfigure(); // reload if it's changed + checkReload(); // reload if it's changed Application *app = find(winclient); if (app && (app->save_on_close_remember && app->save_on_close)) { diff --git a/src/Remember.hh b/src/Remember.hh index 107f1d2..1f3ed7f 100644 --- a/src/Remember.hh +++ b/src/Remember.hh @@ -225,6 +225,7 @@ public: FluxboxWindow* findGroup(Application *, BScreen &screen); void reconfigure(); + void checkReload(); void reload(); void save(); -- cgit v0.11.2