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.

This commit is contained in:
Dana Jansens 2002-07-29 22:56:08 +00:00
parent 06b160db51
commit 961d7eb5b3

View file

@ -227,6 +227,9 @@ void Workspace::showAll(void) {
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();
}
}
@ -240,6 +243,9 @@ 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
// 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();
}
}