diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-29 20:13:44 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-30 20:02:59 (GMT) |
commit | a5b5be5e09ef4488d7dcebf2091e94b8e4d6e727 (patch) | |
tree | f7f949f8564693e1d7195c374cab206e8436971c /src/WorkspaceCmd.hh | |
parent | 8a6623040ea543f20712dbcb1ed2f9456118961c (diff) | |
download | fluxbox-a5b5be5e09ef4488d7dcebf2091e94b8e4d6e727.zip fluxbox-a5b5be5e09ef4488d7dcebf2091e94b8e4d6e727.tar.bz2 |
Add "Unclutter" command
Unclutter the desktop by using the MinOverlapPlacement
for all matching windows.
REQUEST: 248
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r-- | src/WorkspaceCmd.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh index b118d02..4f294fe 100644 --- a/src/WorkspaceCmd.hh +++ b/src/WorkspaceCmd.hh | |||
@@ -187,6 +187,14 @@ private: | |||
187 | const ClientPattern m_pat; | 187 | const ClientPattern m_pat; |
188 | }; | 188 | }; |
189 | 189 | ||
190 | class UnclutterCmd: public FbTk::Command<void> { | ||
191 | public: | ||
192 | explicit UnclutterCmd(std::string &pat): m_pat(pat.c_str()) { } | ||
193 | void execute(); | ||
194 | private: | ||
195 | const ClientPattern m_pat; | ||
196 | }; | ||
197 | |||
190 | class ShowDesktopCmd: public FbTk::Command<void> { | 198 | class ShowDesktopCmd: public FbTk::Command<void> { |
191 | public: | 199 | public: |
192 | void execute(); | 200 | void execute(); |