From 77c518f8088dfae042f96f4f6424232e6400de40 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 29 Jul 2002 06:21:31 +0000 Subject: better sticky windows. --- src/Workspace.cc | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/Workspace.cc') diff --git a/src/Workspace.cc b/src/Workspace.cc index f4a09680..964e1f42 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -118,14 +118,6 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) { raiseWindow(w); else lowerWindow(w); - - // if the window is sticky, then it needs to be added on all other - // workspaces too! - if (! sticky && w->isStuck()) { - for (unsigned int i = 0; i < screen->getWorkspaceCount(); ++i) - if (i != id) - screen->getWorkspace(i)->addWindow(w, place, True); - } } @@ -140,14 +132,6 @@ void Workspace::removeWindow(BlackboxWindow *w, bool sticky) { focusFallback(w); } - // if the window is sticky, then it needs to be removed on all other - // workspaces too! - if (! sticky && w->isStuck()) { - for (unsigned int i = 0; i < screen->getWorkspaceCount(); ++i) - if (i != id) - screen->getWorkspace(i)->removeWindow(w, True); - } - if (! w->isNormal()) return; BlackboxWindowList::iterator it, end = windowList.end(); -- cgit v1.2.3