diff options
-rw-r--r-- | src/WorkspaceCmd.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
22 | 22 | ||
23 | #include "WorkspaceCmd.hh" | 23 | #include "WorkspaceCmd.hh" |
24 | 24 | ||
25 | #include "Layer.hh" | ||
25 | #include "Workspace.hh" | 26 | #include "Workspace.hh" |
26 | #include "Window.hh" | 27 | #include "Window.hh" |
27 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -493,7 +494,7 @@ void ShowDesktopCmd::execute() { | |||
493 | Workspace::Windows::iterator it = windows.begin(), | 494 | Workspace::Windows::iterator it = windows.begin(), |
494 | it_end = windows.end(); | 495 | it_end = windows.end(); |
495 | for (; it != it_end; ++it) { | 496 | for (; it != it_end; ++it) { |
496 | if ((*it)->getWindowType() != Focusable::TYPE_DESKTOP) { | 497 | if ((*it)->layerNum() < Layer::DESKTOP) { |
497 | (*it)->iconify(); | 498 | (*it)->iconify(); |
498 | count++; | 499 | count++; |
499 | } | 500 | } |