diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-29 22:56:08 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-29 22:56:08 +0000 |
| commit | 961d7eb5b388e284c697b4ab0fc96ce52f90ff0a (patch) | |
| tree | de1608b6ba328ec0f4e525408e008ea13ef7d31c | |
| parent | 06b160db5106a28b76ca0eee139393696d119135 (diff) | |
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.
| -rw-r--r-- | src/Workspace.cc | 10 |
1 files changed, 8 insertions, 2 deletions
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(); } } |
