From 961d7eb5b388e284c697b4ab0fc96ce52f90ff0a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 29 Jul 2002 22:56:08 +0000 Subject: [PATCH] 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. --- src/Workspace.cc | 10 ++++++++-- 1 file 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(); } } -- 2.39.2