aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc13
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
483FbTk::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
489REGISTER_COMMAND_PARSER(setlayer, SetLayerCmd::parse, void);
490
491void SetLayerCmd::real_execute() {
492 fbwindow().moveToLayer(m_layer);
493}
494
482FbTk::Command<void> *SetAlphaCmd::parse(const string &command, const string &args, 495FbTk::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;