ShowDesktop should ignore everything on the desktop layer, not just windows of type Desktop

This commit is contained in:
Mark Tiefenbruck 2008-08-20 04:06:48 -07:00
parent 74df0fcda9
commit 0fea3e3c86

View file

@ -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++;
}