diff options
author | markt <markt> | 2007-01-11 19:22:46 (GMT) |
---|---|---|
committer | markt <markt> | 2007-01-11 19:22:46 (GMT) |
commit | 9cace1f2cb9a082408e49e668bd02a16a016cd6e (patch) | |
tree | 0eeb0bc4b8baaeacfa0200988883183c58ea0620 /src/WorkspaceCmd.cc | |
parent | 45743c6f42aa50548141dad7a050a6150200b22a (diff) | |
download | fluxbox-9cace1f2cb9a082408e49e668bd02a16a016cd6e.zip fluxbox-9cace1f2cb9a082408e49e668bd02a16a016cd6e.tar.bz2 |
add feature to minimize windows in current layer
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 13 |
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 | ||
258 | void 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 | |||
258 | void CloseAllWindowsCmd::execute() { | 271 | void CloseAllWindowsCmd::execute() { |
259 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | 272 | BScreen *screen = Fluxbox::instance()->mouseScreen(); |
260 | if (screen == 0) | 273 | if (screen == 0) |