From 3a109be9b3038495b70ea3ec0894cf38b9121f27 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 12 Aug 2003 00:27:57 +0000 Subject: removing client from workspace and sending update netizen window del --- src/Screen.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 5066420..6d45427 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.215 2003/08/11 20:32:51 fluxgen Exp $ +// $Id: Screen.cc,v 1.216 2003/08/12 00:27:57 fluxgen Exp $ #include "Screen.hh" @@ -772,9 +772,12 @@ void BScreen::removeClient(WinClient &client) { else Fluxbox::instance()->revertFocus(focused->screen()); } - // update client lists on all workspaces - for_each(getWorkspacesList().begin(), getWorkspacesList().end(), - mem_fun(&Workspace::updateClientmenu)); + + Workspaces::iterator workspace_it = getWorkspacesList().begin(); + Workspaces::iterator workspace_it_end = getWorkspacesList().end(); + for (; workspace_it != workspace_it_end; ++workspace_it) { + (*workspace_it)->removeWindow(client); + } // remove any grouping this is expecting Groupables::iterator it = m_expecting_groups.begin(); @@ -788,6 +791,8 @@ void BScreen::removeClient(WinClient &client) { } // the client could be on icon menu so we update it updateIconMenu(); + // finaly send notify signal + updateNetizenWindowDel(client.window()); } FluxboxWindow *BScreen::getIcon(unsigned int index) { -- cgit v0.11.2