diff options
author | rathnor <rathnor> | 2003-07-04 14:06:20 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-04 14:06:20 (GMT) |
commit | 16c567638cad8b0fdd5afb08ae7a185f5259e4c1 (patch) | |
tree | 03a5b1e59b630516d05a6f81fd82f026b69a2a5b /src/fluxbox.cc | |
parent | e82122eb44f3ed758f804c97da08d11196e42510 (diff) | |
download | fluxbox-16c567638cad8b0fdd5afb08ae7a185f5259e4c1.zip fluxbox-16c567638cad8b0fdd5afb08ae7a185f5259e4c1.tar.bz2 |
fix winclient death signalling
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index cb5cb68..75a6502 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: fluxbox.cc,v 1.168 2003/07/04 01:03:41 rathnor Exp $ | 25 | // $Id: fluxbox.cc,v 1.169 2003/07/04 14:06:20 rathnor Exp $ |
26 | 26 | ||
27 | #include "fluxbox.hh" | 27 | #include "fluxbox.hh" |
28 | 28 | ||
@@ -1262,7 +1262,7 @@ void Fluxbox::update(FbTk::Subject *changedsub) { | |||
1262 | } else if ((&(win.dieSig())) == changedsub) { // window death signal | 1262 | } else if ((&(win.dieSig())) == changedsub) { // window death signal |
1263 | for (size_t i=0; i<m_atomhandler.size(); ++i) { | 1263 | for (size_t i=0; i<m_atomhandler.size(); ++i) { |
1264 | if (m_atomhandler[i]->update()) | 1264 | if (m_atomhandler[i]->update()) |
1265 | m_atomhandler[i]->updateWindowClose(win); | 1265 | m_atomhandler[i]->updateFrameClose(win); |
1266 | } | 1266 | } |
1267 | // make sure each workspace get this | 1267 | // make sure each workspace get this |
1268 | BScreen &scr = win.screen(); | 1268 | BScreen &scr = win.screen(); |
@@ -1309,15 +1309,16 @@ void Fluxbox::update(FbTk::Subject *changedsub) { | |||
1309 | WinClient::WinClientSubj *subj = dynamic_cast<WinClient::WinClientSubj *>(changedsub); | 1309 | WinClient::WinClientSubj *subj = dynamic_cast<WinClient::WinClientSubj *>(changedsub); |
1310 | WinClient &client = subj->winClient(); | 1310 | WinClient &client = subj->winClient(); |
1311 | 1311 | ||
1312 | // TODO: don't assume it is diesig (need to fix as soon as another signal appears) | ||
1313 | for (size_t i=0; i<m_atomhandler.size(); ++i) { | ||
1314 | if (m_atomhandler[i]->update()) | ||
1315 | m_atomhandler[i]->updateClientClose(client); | ||
1316 | } | ||
1312 | BScreen &screen = client.screen(); | 1317 | BScreen &screen = client.screen(); |
1313 | screen.updateNetizenWindowDel(client.window()); | 1318 | screen.updateNetizenWindowDel(client.window()); |
1314 | screen.removeClient(client); | 1319 | screen.removeClient(client); |
1315 | 1320 | ||
1316 | removeWindowSearch(client.window()); | 1321 | removeWindowSearch(client.window()); |
1317 | //!! TODO | ||
1318 | #ifdef DEBUG | ||
1319 | cerr<<__FILE__<<"("<<__FUNCTION__<<") TODO: signal stuff for client death!!"<<endl; | ||
1320 | #endif // DEBUG | ||
1321 | } | 1322 | } |
1322 | } | 1323 | } |
1323 | 1324 | ||