aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-21 17:32:40 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-21 17:32:40 (GMT)
commit52e22a0304ef108e036cecc7c8808dc0bcf8d77b (patch)
treee3f3d36b84be954b8193262e77468d72a325326f /src/fluxbox.cc
parentd05804e6661d4976ba52ef8727ec8387e2e3bba1 (diff)
downloadfluxbox-52e22a0304ef108e036cecc7c8808dc0bcf8d77b.zip
fluxbox-52e22a0304ef108e036cecc7c8808dc0bcf8d77b.tar.bz2
Changed client list signal in BScreen to use the new signal system
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index e9c548c..3a07060 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -455,7 +455,9 @@ void Fluxbox::initScreen(BScreen *screen) {
455 // attach screen signals to this 455 // attach screen signals to this
456 screen->focusedWindowSig().attach(this); 456 screen->focusedWindowSig().attach(this);
457 screen->workspaceAreaSig().attach(this); 457 screen->workspaceAreaSig().attach(this);
458 screen->clientListSig().attach(this); 458
459 join(screen->clientListSig(),
460 FbTk::MemFun(*this, &Fluxbox::clientListChanged));
459 461
460 join(screen->workspaceNamesSig(), 462 join(screen->workspaceNamesSig(),
461 FbTk::MemFun(*this, &Fluxbox::workspaceNamesChanged)); 463 FbTk::MemFun(*this, &Fluxbox::workspaceNamesChanged));
@@ -1117,12 +1119,6 @@ void Fluxbox::update(FbTk::Subject *changedsub) {
1117 if ((*it).first->update()) 1119 if ((*it).first->update())
1118 (*it).first->updateWorkarea(screen); 1120 (*it).first->updateWorkarea(screen);
1119 } 1121 }
1120 } else if ((&(screen.clientListSig())) == changedsub) {
1121 for (AtomHandlerContainerIt it= m_atomhandler.begin();
1122 it != m_atomhandler.end(); ++it) {
1123 if ((*it).first->update())
1124 (*it).first->updateClientList(screen);
1125 }
1126 } 1122 }
1127 } 1123 }
1128} 1124}
@@ -1533,3 +1529,11 @@ void Fluxbox::workspaceNamesChanged(BScreen &screen) {
1533 (*it).first->updateWorkspaceNames(screen); 1529 (*it).first->updateWorkspaceNames(screen);
1534 } 1530 }
1535} 1531}
1532
1533void Fluxbox::clientListChanged(BScreen &screen) {
1534 for (AtomHandlerContainerIt it= m_atomhandler.begin();
1535 it != m_atomhandler.end(); ++it) {
1536 if ((*it).first->update())
1537 (*it).first->updateClientList(screen);
1538 }
1539}