all repos — openbox @ 9e7f5d2208649a441a11c9912d10604769f72189

openbox fork - make it a bit more like ryudo

added sticky windows in the wrong place, before the window was even fully initialized ont he workspace.
Dana Jansens danakj@orodu.net
commit

9e7f5d2208649a441a11c9912d10604769f72189

parent

d06cedce062da73393a585d061b19b6604bbe568

1 files changed, 8 insertions(+), 8 deletions(-)

jump to
M src/Workspace.ccsrc/Workspace.cc

@@ -85,14 +85,6 @@ if (place) placeWindow(w);

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 @@ if (! w->isDesktop())

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); + } }