all repos — openbox @ 961d7eb5b388e284c697b4ab0fc96ce52f90ff0a

openbox fork - make it a bit more like ryudo

since !isNormal windows cant focus from mouse enter events anyays, we don't need to unmap them/remap them on workspace changes, so we don't. this way they dont flash.
Dana Jansens danakj@orodu.net
commit

961d7eb5b388e284c697b4ab0fc96ce52f90ff0a

parent

06b160db5106a28b76ca0eee139393696d119135

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

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

@@ -227,7 +227,10 @@ BlackboxWindowList::iterator it = stackingList.begin();

const BlackboxWindowList::iterator end = stackingList.end(); for (; it != end; ++it) { BlackboxWindow *bw = *it; - bw->show(); + // 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(); } }

@@ -240,7 +243,10 @@ while (it != end) {

BlackboxWindow *bw = *it; ++it; // withdraw removes the current item from the list so we need the next // iterator before that happens - bw->withdraw(); + // 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->withdraw(); } }