ShowDesktop should ignore everything on the desktop layer, not just windows of type Desktop
This commit is contained in:
parent
74df0fcda9
commit
0fea3e3c86
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "WorkspaceCmd.hh"
|
#include "WorkspaceCmd.hh"
|
||||||
|
|
||||||
|
#include "Layer.hh"
|
||||||
#include "Workspace.hh"
|
#include "Workspace.hh"
|
||||||
#include "Window.hh"
|
#include "Window.hh"
|
||||||
#include "Screen.hh"
|
#include "Screen.hh"
|
||||||
|
@ -493,7 +494,7 @@ void ShowDesktopCmd::execute() {
|
||||||
Workspace::Windows::iterator it = windows.begin(),
|
Workspace::Windows::iterator it = windows.begin(),
|
||||||
it_end = windows.end();
|
it_end = windows.end();
|
||||||
for (; it != it_end; ++it) {
|
for (; it != it_end; ++it) {
|
||||||
if ((*it)->getWindowType() != Focusable::TYPE_DESKTOP) {
|
if ((*it)->layerNum() < Layer::DESKTOP) {
|
||||||
(*it)->iconify();
|
(*it)->iconify();
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue