summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Workspace.cc10
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();
}
}