some minor changes
This commit is contained in:
parent
0b2e002d4f
commit
a56492c0d5
2 changed files with 7 additions and 3 deletions
|
@ -120,7 +120,7 @@ public:
|
||||||
|
|
||||||
void click(int button, int time, unsigned int mods) {
|
void click(int button, int time, unsigned int mods) {
|
||||||
// reconfigure only does stuff if the apps file has changed
|
// reconfigure only does stuff if the apps file has changed
|
||||||
Remember::instance().reconfigure();
|
Remember::instance().checkReload();
|
||||||
if (WindowCmd<void>::window() != 0) {
|
if (WindowCmd<void>::window() != 0) {
|
||||||
if (isSelected()) {
|
if (isSelected()) {
|
||||||
Remember::instance().forgetAttrib(WindowCmd<void>::window()->winClient(), m_attrib);
|
Remember::instance().forgetAttrib(WindowCmd<void>::window()->winClient(), m_attrib);
|
||||||
|
@ -580,6 +580,9 @@ Application *Remember::findMatchingPatterns(ClientPattern *pat, Patterns *patlis
|
||||||
|
|
||||||
void Remember::reconfigure() {
|
void Remember::reconfigure() {
|
||||||
m_reloader.setMainFile(Fluxbox::instance()->getAppsFilename());
|
m_reloader.setMainFile(Fluxbox::instance()->getAppsFilename());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Remember::checkReload() {
|
||||||
m_reloader.checkReload();
|
m_reloader.checkReload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1214,7 +1217,7 @@ void Remember::setupClient(WinClient &winclient) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// check if apps file has changed
|
// check if apps file has changed
|
||||||
reconfigure();
|
checkReload();
|
||||||
|
|
||||||
Application *app = find(winclient);
|
Application *app = find(winclient);
|
||||||
if (app == 0)
|
if (app == 0)
|
||||||
|
@ -1249,7 +1252,7 @@ FluxboxWindow *Remember::findGroup(Application *app, BScreen &screen) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Remember::updateClientClose(WinClient &winclient) {
|
void Remember::updateClientClose(WinClient &winclient) {
|
||||||
reconfigure(); // reload if it's changed
|
checkReload(); // reload if it's changed
|
||||||
Application *app = find(winclient);
|
Application *app = find(winclient);
|
||||||
|
|
||||||
if (app && (app->save_on_close_remember && app->save_on_close)) {
|
if (app && (app->save_on_close_remember && app->save_on_close)) {
|
||||||
|
|
|
@ -225,6 +225,7 @@ public:
|
||||||
FluxboxWindow* findGroup(Application *, BScreen &screen);
|
FluxboxWindow* findGroup(Application *, BScreen &screen);
|
||||||
|
|
||||||
void reconfigure();
|
void reconfigure();
|
||||||
|
void checkReload();
|
||||||
void reload();
|
void reload();
|
||||||
void save();
|
void save();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue