summaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-28 18:40:15 +0000
committerDana Jansens <danakj@orodu.net>2002-07-28 18:40:15 +0000
commit9e7f5d2208649a441a11c9912d10604769f72189 (patch)
treec3f3f44286ab9564b8fc60540a5efb7a4182b0a1 /src/Workspace.cc
parentd06cedce062da73393a585d061b19b6604bbe568 (diff)
added sticky windows in the wrong place, before the window was even fully initialized ont he workspace.
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index 70d1923c..f4a09680 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -85,14 +85,6 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
stackingList.push_front(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);
- }
-
if (w->isNormal()) {
if (! sticky) {
w->setWorkspace(id);
@@ -126,6 +118,14 @@ 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);
+ }
}