diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2009-06-28 17:15:06 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2009-06-28 17:15:06 (GMT) |
commit | 5f9f2475b72e977fa96214e368c34c588b265888 (patch) | |
tree | db2dc4b3cc762b356c4420f9345b52e39d94f0c7 /src/CurrentWindowCmd.hh | |
parent | c1d9ae5068ed209a8ed051a68c269bd0158bf6a8 (diff) | |
download | fluxbox_pavel-5f9f2475b72e977fa96214e368c34c588b265888.zip fluxbox_pavel-5f9f2475b72e977fa96214e368c34c588b265888.tar.bz2 |
make Raise/LowerLayer accept integer argument for number of layers, default 2
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index 32cc5f0..edf00fa 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -255,6 +255,17 @@ private: | |||
255 | int m_layer; | 255 | int m_layer; |
256 | }; | 256 | }; |
257 | 257 | ||
258 | class ChangeLayerCmd: public WindowHelperCmd { | ||
259 | public: | ||
260 | explicit ChangeLayerCmd(int diff): m_diff(diff) { } | ||
261 | static FbTk::Command<void> *parse(const std::string &command, | ||
262 | const std::string &args, bool trusted); | ||
263 | protected: | ||
264 | void real_execute(); | ||
265 | private: | ||
266 | int m_diff; | ||
267 | }; | ||
268 | |||
258 | class MatchCmd: public WindowHelperBoolCmd { | 269 | class MatchCmd: public WindowHelperBoolCmd { |
259 | public: | 270 | public: |
260 | MatchCmd(const std::string &pat): m_pat(pat.c_str()) { }; | 271 | MatchCmd(const std::string &pat): m_pat(pat.c_str()) { }; |