From 0fea3e3c8640888e4ae6e76775f309f290134aab Mon Sep 17 00:00:00 2001
From: Mark Tiefenbruck <mark@fluxbox.org>
Date: Wed, 20 Aug 2008 04:06:48 -0700
Subject: ShowDesktop should ignore everything on the desktop layer, not just
 windows of type Desktop

---
 src/WorkspaceCmd.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 7a8bbc4..592b34b 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -22,6 +22,7 @@
 
 #include "WorkspaceCmd.hh"
 
+#include "Layer.hh"
 #include "Workspace.hh"
 #include "Window.hh"
 #include "Screen.hh"
@@ -493,7 +494,7 @@ void ShowDesktopCmd::execute() {
     Workspace::Windows::iterator it = windows.begin(),
                                  it_end = windows.end();
     for (; it != it_end; ++it) {
-        if ((*it)->getWindowType() != Focusable::TYPE_DESKTOP) {
+        if ((*it)->layerNum() < Layer::DESKTOP) {
             (*it)->iconify();
             count++;
         }
-- 
cgit v0.11.2