From f3a54e41a0e220cf42e717ebae0b5fe8eb2a614c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 8 Aug 2002 05:00:14 +0000 Subject: [PATCH] use the old method for showing windows on workspace change --- src/Workspace.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index 7cd21f1c..7e05e4c9 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -461,8 +461,15 @@ void Workspace::hide(void) { void Workspace::show(void) { - std::for_each(stackingList.begin(), stackingList.end(), - std::mem_fun(&BlackboxWindow::show)); + BlackboxWindowList::iterator it = stackingList.begin(); + 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(); + } XSync(screen->getBlackbox()->getXDisplay(), False); -- 2.39.2