diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-05 07:05:21 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-05 07:05:21 (GMT) |
commit | 24bea22035e79c17fa6b6fdcd60f88e4eac467d8 (patch) | |
tree | e0cae9682c279558cbaa106d0572118ee76652db /src/CurrentWindowCmd.cc | |
parent | 9d71ad9c1477875001ecd19eb4cbbe1c4ba4eb40 (diff) | |
download | fluxbox_pavel-24bea22035e79c17fa6b6fdcd60f88e4eac467d8.zip fluxbox_pavel-24bea22035e79c17fa6b6fdcd60f88e4eac467d8.tar.bz2 |
add SetLayer key command
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index 4c027d9..42ee69c 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "CurrentWindowCmd.hh" | 23 | #include "CurrentWindowCmd.hh" |
24 | 24 | ||
25 | #include "fluxbox.hh" | 25 | #include "fluxbox.hh" |
26 | #include "Layer.hh" | ||
26 | #include "Window.hh" | 27 | #include "Window.hh" |
27 | #include "WindowCmd.hh" | 28 | #include "WindowCmd.hh" |
28 | #include "Screen.hh" | 29 | #include "Screen.hh" |
@@ -479,6 +480,18 @@ void FullscreenCmd::real_execute() { | |||
479 | fbwindow().setFullscreen(!fbwindow().isFullscreen()); | 480 | fbwindow().setFullscreen(!fbwindow().isFullscreen()); |
480 | } | 481 | } |
481 | 482 | ||
483 | FbTk::Command<void> *SetLayerCmd::parse(const string &command, | ||
484 | const string &args, bool trusted) { | ||
485 | int l = Layer::getNumFromString(args); | ||
486 | return (l == -1) ? 0 : new SetLayerCmd(l); | ||
487 | } | ||
488 | |||
489 | REGISTER_COMMAND_PARSER(setlayer, SetLayerCmd::parse, void); | ||
490 | |||
491 | void SetLayerCmd::real_execute() { | ||
492 | fbwindow().moveToLayer(m_layer); | ||
493 | } | ||
494 | |||
482 | FbTk::Command<void> *SetAlphaCmd::parse(const string &command, const string &args, | 495 | FbTk::Command<void> *SetAlphaCmd::parse(const string &command, const string &args, |
483 | bool trusted) { | 496 | bool trusted) { |
484 | typedef std::vector<string> StringTokens; | 497 | typedef std::vector<string> StringTokens; |