diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-21 07:47:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-21 07:47:52 +0000 |
| commit | a9bfdcaa06b42e9c0de06042f79d1920361aaa25 (patch) | |
| tree | 83c6ebcf1247ac83b0eb87046eb97552c3775035 /src/Workspace.cc | |
| parent | 183cf03a4f45196213c9d52d6cfe4b9da00d3e26 (diff) | |
making warping work.. hopefully.
fix for leaving !normal windows behind in the window list
Diffstat (limited to 'src/Workspace.cc')
| -rw-r--r-- | src/Workspace.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index 1cb40b39..715d012e 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -85,11 +85,18 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) { stackingList.push_front(w); - if (w->isNormal()) { + if (! sticky) + w->setWorkspace(id); + + if (! w->isNormal()) { if (! sticky) { - w->setWorkspace(id); - w->setWindowNumber(windowList.size()); + // just give it some number, else bad things happen as it is assumed to + // not be on a workspace + w->setWindowNumber(0); } + } else { + if (! sticky) + w->setWindowNumber(windowList.size()); windowList.push_back(w); @@ -110,11 +117,6 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) { lastfocus = w; } } - } else { - w->setWorkspace(id); - // just give it some number, else bad things happen as it is assumed to not - // be on a workspace - w->setWindowNumber(0); } if (! w->isDesktop()) |
