From 1e9dafdc67e1f67b5d360dcb0f7b276c38cbc46c Mon Sep 17 00:00:00 2001
From: Mathias Gumz <akira at fluxbox dot org>
Date: Sat, 4 Sep 2010 14:41:11 +0200
Subject: fixed the default 'OnTitlebar Mouse1' actions

---
 data/keys                      | 2 +-
 src/Keys.cc                    | 4 ++--
 util/fluxbox-update_configs.cc | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/keys b/data/keys
index 3bfca00..7e2557c 100644
--- a/data/keys
+++ b/data/keys
@@ -29,7 +29,7 @@ OnTitlebar Control Mouse1 :StartTabbing
 OnTitlebar Double Mouse1 :Shade
 
 # left click on the titlebar to move the window
-OnTitlebar Mouse1 :MacroCmd {ActivateTab} {Raise} {Focus}
+OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}
 OnTitlebar Move1  :StartMoving
 
 # middle click on the titlebar to lower
diff --git a/src/Keys.cc b/src/Keys.cc
index 7cd77eb..d3d0ea2 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -354,8 +354,8 @@ void Keys::loadDefaults() {
     addBinding("OnDesktop Mouse2 :WorkspaceMenu");
     addBinding("OnDesktop Mouse3 :RootMenu");
     addBinding("OnTitlebar Mouse3 :WindowMenu");
-    addBinding("OnWindow Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}");
-    addBinding("OnTitlebar Mouse1 :MacroCmd {ActivateTab} {Raise} {Focus}");
+    addBinding("OnWindow Mouse1 :MacroCmd {Focus} {Raise} {StartMoving}");
+    addBinding("OnTitlebar Mouse1 :MacroCmd {Focus} {Raise} {ActivateTab}");
     addBinding("OnTitlebar Move1 :StartMoving");
     addBinding("OnLeftGrip Move1 :StartResizing bottomleft");
     addBinding("OnRightGrip Move1 :StartResizing bottomright");
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc
index 129833c..fd18cfd 100644
--- a/util/fluxbox-update_configs.cc
+++ b/util/fluxbox-update_configs.cc
@@ -403,7 +403,7 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) {
         string new_keyfile = "";
 
         new_keyfile += "!mouse actions added by fluxbox-update_configs\n";
-        new_keyfile += "OnTitlebar Mouse1 :MacroCmd {ActivateTab} {Raise} {Focus}\n";
+        new_keyfile += "OnTitlebar Mouse1 :MacroCmd {Focus} {Raise} {ActivateTab}\n";
         new_keyfile += whole_file;
 
         new_keyfile += "\n"; // just for good looks
-- 
cgit v0.11.2