aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index 2bc0d78..9ddce15 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.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: Workspace.cc,v 1.52 2003/04/15 12:20:27 fluxgen Exp $ 25// $Id: Workspace.cc,v 1.53 2003/04/16 14:43:06 rathnor Exp $
26 26
27#include "Workspace.hh" 27#include "Workspace.hh"
28 28
@@ -194,9 +194,14 @@ int Workspace::addWindow(FluxboxWindow &w, bool place) {
194 m_windowlist.push_back(&w); 194 m_windowlist.push_back(&w);
195 updateClientmenu(); 195 updateClientmenu();
196 196
197 197 if (!w.isStuck()) {
198 if (!w.isStuck()) 198 FluxboxWindow::ClientList::iterator client_it =
199 screen.updateNetizenWindowAdd(w.getClientWindow(), m_id); 199 w.clientList().begin();
200 FluxboxWindow::ClientList::iterator client_it_end =
201 w.clientList().end();
202 for (; client_it != client_it_end; ++client_it)
203 screen.updateNetizenWindowAdd((*client_it)->window(), m_id);
204 }
200 205
201 return w.getWindowNumber(); 206 return w.getWindowNumber();
202} 207}
@@ -274,6 +279,15 @@ int Workspace::removeWindow(FluxboxWindow *w) {
274 if (lastfocus == w || m_windowlist.empty()) 279 if (lastfocus == w || m_windowlist.empty())
275 lastfocus = 0; 280 lastfocus = 0;
276 281
282 if (!w->isStuck()) {
283 FluxboxWindow::ClientList::iterator client_it =
284 w->clientList().begin();
285 FluxboxWindow::ClientList::iterator client_it_end =
286 w->clientList().end();
287 for (; client_it != client_it_end; ++client_it)
288 screen.updateNetizenWindowDel((*client_it)->window());
289 }
290
277 return m_windowlist.size(); 291 return m_windowlist.size();
278} 292}
279 293