aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.hh
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-08-29 20:13:44 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-08-30 20:02:59 (GMT)
commita5b5be5e09ef4488d7dcebf2091e94b8e4d6e727 (patch)
treef7f949f8564693e1d7195c374cab206e8436971c /src/WorkspaceCmd.hh
parent8a6623040ea543f20712dbcb1ed2f9456118961c (diff)
downloadfluxbox-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.hh8
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
190class UnclutterCmd: public FbTk::Command<void> {
191public:
192 explicit UnclutterCmd(std::string &pat): m_pat(pat.c_str()) { }
193 void execute();
194private:
195 const ClientPattern m_pat;
196};
197
190class ShowDesktopCmd: public FbTk::Command<void> { 198class ShowDesktopCmd: public FbTk::Command<void> {
191public: 199public:
192 void execute(); 200 void execute();