added sticky windows in the wrong place, before the window was even fully initialized ont he workspace.
This commit is contained in:
parent
d06cedce06
commit
9e7f5d2208
1 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue