aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index 713c32a..4d25d54 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -223,6 +223,27 @@ FbTk::Command<void> *parseFocusCmd(const string &command, const string &args,
223REGISTER_COMMAND_PARSER(activate, parseFocusCmd, void); 223REGISTER_COMMAND_PARSER(activate, parseFocusCmd, void);
224REGISTER_COMMAND_PARSER(focus, parseFocusCmd, void); 224REGISTER_COMMAND_PARSER(focus, parseFocusCmd, void);
225 225
226
227class ActivateTabCmd: public WindowHelperCmd {
228public:
229 ActivateTabCmd() { }
230protected:
231 void real_execute();
232};
233
234
235void ActivateTabCmd::real_execute() {
236
237 WinClient* winclient = fbwindow().winClientOfLabelButtonWindow(
238 Fluxbox::instance()->lastEvent().xany.window);
239
240 if (winclient && winclient != &fbwindow().winClient()) {
241 fbwindow().setCurrentClient(*winclient, true);
242 }
243}
244
245REGISTER_COMMAND(activatetab, ActivateTabCmd, void);
246
226} // end anonymous namespace 247} // end anonymous namespace
227 248
228void SetHeadCmd::real_execute() { 249void SetHeadCmd::real_execute() {