diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-20 11:06:48 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-20 11:06:48 (GMT) |
commit | 0fea3e3c8640888e4ae6e76775f309f290134aab (patch) | |
tree | 072da31b85854bfc511848af0bf1e3c918f03353 /src | |
parent | 74df0fcda9d9a60e32d4bcc240564854e49731fe (diff) | |
download | fluxbox_pavel-0fea3e3c8640888e4ae6e76775f309f290134aab.zip fluxbox_pavel-0fea3e3c8640888e4ae6e76775f309f290134aab.tar.bz2 |
ShowDesktop should ignore everything on the desktop layer, not just windows of type Desktop
Diffstat (limited to 'src')
-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 | } |