aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc9
1 files changed, 6 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:
120 120
121 void click(int button, int time, unsigned int mods) { 121 void click(int button, int time, unsigned int mods) {
122 // reconfigure only does stuff if the apps file has changed 122 // reconfigure only does stuff if the apps file has changed
123 Remember::instance().reconfigure(); 123 Remember::instance().checkReload();
124 if (WindowCmd<void>::window() != 0) { 124 if (WindowCmd<void>::window() != 0) {
125 if (isSelected()) { 125 if (isSelected()) {
126 Remember::instance().forgetAttrib(WindowCmd<void>::window()->winClient(), m_attrib); 126 Remember::instance().forgetAttrib(WindowCmd<void>::window()->winClient(), m_attrib);
@@ -580,6 +580,9 @@ Application *Remember::findMatchingPatterns(ClientPattern *pat, Patterns *patlis
580 580
581void Remember::reconfigure() { 581void Remember::reconfigure() {
582 m_reloader.setMainFile(Fluxbox::instance()->getAppsFilename()); 582 m_reloader.setMainFile(Fluxbox::instance()->getAppsFilename());
583}
584
585void Remember::checkReload() {
583 m_reloader.checkReload(); 586 m_reloader.checkReload();
584} 587}
585 588
@@ -1214,7 +1217,7 @@ void Remember::setupClient(WinClient &winclient) {
1214 return; 1217 return;
1215 1218
1216 // check if apps file has changed 1219 // check if apps file has changed
1217 reconfigure(); 1220 checkReload();
1218 1221
1219 Application *app = find(winclient); 1222 Application *app = find(winclient);
1220 if (app == 0) 1223 if (app == 0)
@@ -1249,7 +1252,7 @@ FluxboxWindow *Remember::findGroup(Application *app, BScreen &screen) {
1249} 1252}
1250 1253
1251void Remember::updateClientClose(WinClient &winclient) { 1254void Remember::updateClientClose(WinClient &winclient) {
1252 reconfigure(); // reload if it's changed 1255 checkReload(); // reload if it's changed
1253 Application *app = find(winclient); 1256 Application *app = find(winclient);
1254 1257
1255 if (app && (app->save_on_close_remember && app->save_on_close)) { 1258 if (app && (app->save_on_close_remember && app->save_on_close)) {