diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-20 10:22:51 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-20 10:22:51 (GMT) |
commit | 74df0fcda9d9a60e32d4bcc240564854e49731fe (patch) | |
tree | 60d279fd180d78e637325b57f5eede83b98abe40 /src | |
parent | 2df0e67ca506448996a83b47a3eb77360712f4cc (diff) | |
download | fluxbox-74df0fcda9d9a60e32d4bcc240564854e49731fe.zip fluxbox-74df0fcda9d9a60e32d4bcc240564854e49731fe.tar.bz2 |
add SetDecor key command
Diffstat (limited to 'src')
-rw-r--r-- | src/CurrentWindowCmd.cc | 9 | ||||
-rw-r--r-- | src/CurrentWindowCmd.hh | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index bfccbdc..6918db9 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -509,6 +509,15 @@ void SetTitleCmd::real_execute() { | |||
509 | fbwindow().winClient().setTitle(title); | 509 | fbwindow().winClient().setTitle(title); |
510 | } | 510 | } |
511 | 511 | ||
512 | REGISTER_COMMAND_WITH_ARGS(setdecor, SetDecorCmd, void); | ||
513 | |||
514 | SetDecorCmd::SetDecorCmd(const std::string &args): | ||
515 | m_mask(FbWinFrame::getDecoMaskFromString(args)) { } | ||
516 | |||
517 | void SetDecorCmd::real_execute() { | ||
518 | fbwindow().setDecorationMask(m_mask); | ||
519 | } | ||
520 | |||
512 | FbTk::Command<void> *SetAlphaCmd::parse(const string &command, const string &args, | 521 | FbTk::Command<void> *SetAlphaCmd::parse(const string &command, const string &args, |
513 | bool trusted) { | 522 | bool trusted) { |
514 | typedef std::vector<string> StringTokens; | 523 | typedef std::vector<string> StringTokens; |
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index 8371204..9b7d181 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -247,6 +247,15 @@ private: | |||
247 | std::string title; | 247 | std::string title; |
248 | }; | 248 | }; |
249 | 249 | ||
250 | class SetDecorCmd: public WindowHelperCmd { | ||
251 | public: | ||
252 | explicit SetDecorCmd(const std::string &args); | ||
253 | protected: | ||
254 | void real_execute(); | ||
255 | private: | ||
256 | unsigned int m_mask; | ||
257 | }; | ||
258 | |||
250 | class SetAlphaCmd: public WindowHelperCmd { | 259 | class SetAlphaCmd: public WindowHelperCmd { |
251 | public: | 260 | public: |
252 | SetAlphaCmd(int focus, bool rel, int unfocus, bool unrel); | 261 | SetAlphaCmd(int focus, bool rel, int unfocus, bool unrel); |