aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-08-20 17:01:25 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-08-20 17:01:25 (GMT)
commitbc2b21547b290f599ca83297e3131c6c0c87759f (patch)
treed1ae4947f3c2818aef33d2cd0ef5d639b558dd72 /src/CurrentWindowCmd.cc
parentb4e65724efbfbefdf4f5a12be19225b2d8a8dda6 (diff)
downloadfluxbox-bc2b21547b290f599ca83297e3131c6c0c87759f.zip
fluxbox-bc2b21547b290f599ca83297e3131c6c0c87759f.tar.bz2
implemented 'ActivateTab' action to (re)allow activation of tabs via mouse
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() {