From: Dana Jansens Date: Mon, 29 Jul 2002 22:56:08 +0000 (+0000) Subject: since !isNormal windows cant focus from mouse enter events anyays, we don't need... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=961d7eb5b388e284c697b4ab0fc96ce52f90ff0a;p=chaz%2Fopenbox 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. --- diff --git a/src/Workspace.cc b/src/Workspace.cc index 964e1f42..4f84cfa7 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -227,7 +227,10 @@ void Workspace::showAll(void) { 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 @@ void Workspace::hideAll(void) { 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(); } }