ShowDesktop should ignore everything on the desktop layer, not just windows of type Desktop
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/WorkspaceCmd.cc
→
src/WorkspaceCmd.cc
@@ -22,6 +22,7 @@ // DEALINGS IN THE SOFTWARE.
#include "WorkspaceCmd.hh" +#include "Layer.hh" #include "Workspace.hh" #include "Window.hh" #include "Screen.hh"@@ -493,7 +494,7 @@ Workspace::Windows windows(screen->currentWorkspace()->windowList());
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++; }