X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.cc;h=4f84cfa7e306587dbae4deb72a9dd9ec39226c7c;hb=ea02ab8caeb7ddde971f4553ff3589e17d19421f;hp=964e1f42a0797368f5a0e0d352852c4208664bfe;hpb=77c518f8088dfae042f96f4f6424232e6400de40;p=chaz%2Fopenbox 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(); } }