all repos — openbox @ f3a54e41a0e220cf42e717ebae0b5fe8eb2a614c

openbox fork - make it a bit more like ryudo

use the old method for showing windows on workspace change
Dana Jansens danakj@orodu.net
commit

f3a54e41a0e220cf42e717ebae0b5fe8eb2a614c

parent

97e86c912ee33e9e75e68f9c193d78879f91d542

1 files changed, 9 insertions(+), 2 deletions(-)

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

@@ -461,8 +461,15 @@ }

void Workspace::show(void) { - std::for_each(stackingList.begin(), stackingList.end(), - std::mem_fun(&BlackboxWindow::show)); + BlackboxWindowList::iterator it = stackingList.begin(); + const BlackboxWindowList::iterator end = stackingList.end(); + for (; it != end; ++it) { + BlackboxWindow *bw = *it; + // not normal windows cant focus from mouse enters anyways, so we dont + // need to unmap/remap them on workspace changes + if (! bw->isStuck() || bw->isNormal()) + bw->show(); + } XSync(screen->getBlackbox()->getXDisplay(), False);