aboutsummaryrefslogtreecommitdiff
path: root/util/fluxbox-update_configs.cc
diff options
context:
space:
mode:
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