]> Dogcows Code - chaz/openbox/commitdiff
since !isNormal windows cant focus from mouse enter events anyays, we don't need...
authorDana Jansens <danakj@orodu.net>
Mon, 29 Jul 2002 22:56:08 +0000 (22:56 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 29 Jul 2002 22:56:08 +0000 (22:56 +0000)
src/Workspace.cc

index 964e1f42a0797368f5a0e0d352852c4208664bfe..4f84cfa7e306587dbae4deb72a9dd9ec39226c7c 100644 (file)
@@ -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();
   }
 }
 
This page took 0.023388 seconds and 4 git commands to generate.