aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 204d1b9..6c97808 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -255,6 +255,19 @@ void ShowDesktopCmd::execute() {
255 std::mem_fun(&FluxboxWindow::iconify)); 255 std::mem_fun(&FluxboxWindow::iconify));
256} 256}
257 257
258void MinimizeLayerCmd::execute() {
259 FluxboxWindow *win = FocusControl::focusedFbWindow();
260 if (!win)
261 return;
262
263 Workspace::Windows windows(win->screen().currentWorkspace()->windowList());
264 Workspace::Windows::iterator it = windows.begin(), it_end = windows.end();
265 for (; it != it_end; ++it) {
266 if (win->layerNum() == (*it)->layerNum())
267 (*it)->iconify();
268 }
269}
270
258void CloseAllWindowsCmd::execute() { 271void CloseAllWindowsCmd::execute() {
259 BScreen *screen = Fluxbox::instance()->mouseScreen(); 272 BScreen *screen = Fluxbox::instance()->mouseScreen();
260 if (screen == 0) 273 if (screen == 0)