aboutsummaryrefslogtreecommitdiff
path: root/util/fluxbox-update_configs.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 /util/fluxbox-update_configs.cc
parentb4e65724efbfbefdf4f5a12be19225b2d8a8dda6 (diff)
downloadfluxbox-bc2b21547b290f599ca83297e3131c6c0c87759f.zip
fluxbox-bc2b21547b290f599ca83297e3131c6c0c87759f.tar.bz2
implemented 'ActivateTab' action to (re)allow activation of tabs via mouse
Diffstat (limited to 'util/fluxbox-update_configs.cc')
-rw-r--r--util/fluxbox-update_configs.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc
index f4a2019..129833c 100644
--- a/util/fluxbox-update_configs.cc
+++ b/util/fluxbox-update_configs.cc
@@ -391,11 +391,27 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) {
391 new_keyfile += "OnWindowBorder Move1 :StartMoving\n\n"; 391 new_keyfile += "OnWindowBorder Move1 :StartMoving\n\n";
392 new_keyfile += whole_keyfile; // don't forget user's old keybindings 392 new_keyfile += whole_keyfile; // don't forget user's old keybindings
393 393
394 new_keyfile += "\n"; // just for good looks
394 write_file(keyfilename, new_keyfile); 395 write_file(keyfilename, new_keyfile);
395 396
396 new_version = 11; 397 new_version = 11;
397 } 398 }
398 399
400 if (old_version < 12) { // update keys for ActivateTab
401
402 string whole_file = read_file(keyfilename);
403 string new_keyfile = "";
404
405 new_keyfile += "!mouse actions added by fluxbox-update_configs\n";
406 new_keyfile += "OnTitlebar Mouse1 :MacroCmd {ActivateTab} {Raise} {Focus}\n";
407 new_keyfile += whole_file;
408
409 new_keyfile += "\n"; // just for good looks
410 write_file(keyfilename, new_keyfile);
411
412 new_version = 12;
413 }
414
399 return new_version; 415 return new_version;
400} 416}
401 417