aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-26 13:59:01 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-26 13:59:01 (GMT)
commit08c8c6431f88ff3d5012d800a8df689b7028fe98 (patch)
treedd5b1b43081f42b3e1f04d94c213e9e48f4772bd
parent7d2240e2ced51fc30b890df299b616471cabee20 (diff)
downloadfluxbox_paul-08c8c6431f88ff3d5012d800a8df689b7028fe98.zip
fluxbox_paul-08c8c6431f88ff3d5012d800a8df689b7028fe98.tar.bz2
use old focus/raise behavior for default alt+left/right mouse bindings
-rw-r--r--data/keys4
-rw-r--r--util/fluxbox-update_configs.cc14
2 files changed, 9 insertions, 9 deletions
diff --git a/data/keys b/data/keys
index f2de94a..2652e93 100644
--- a/data/keys
+++ b/data/keys
@@ -12,8 +12,8 @@ OnToolbar Mouse4 :PrevWorkspace
12OnToolbar Mouse5 :NextWorkspace 12OnToolbar Mouse5 :NextWorkspace
13 13
14# alt + left/right click to move/resize a window 14# alt + left/right click to move/resize a window
15OnWindow Mod1 Mouse1 :StartMoving 15OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
16OnWindow Mod1 Mouse3 :StartResizing NearestCorner 16OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
17 17
18# middle click a window's titlebar and drag to attach windows 18# middle click a window's titlebar and drag to attach windows
19OnTitlebar Mouse2 :StartTabbing 19OnTitlebar Mouse2 :StartTabbing
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc
index 0528119..2bb80c3 100644
--- a/util/fluxbox-update_configs.cc
+++ b/util/fluxbox-update_configs.cc
@@ -199,16 +199,16 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) {
199 "session.modKey", 199 "session.modKey",
200 "Session.ModKey"); 200 "Session.ModKey");
201 201
202 new_keyfile += "OnWindow " + *rc_modkey + " Mouse1 :StartMoving\n"; 202 new_keyfile += "OnWindow " + *rc_modkey +
203 " Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}\n";
204 new_keyfile += "OnWindow " + *rc_modkey +
205 " Mouse3 :MacroCmd {Raise} {Focus} {StartResizing ";
203 if (strcasecmp((*rc_mode).c_str(), "Quadrant") == 0) { 206 if (strcasecmp((*rc_mode).c_str(), "Quadrant") == 0) {
204 new_keyfile += "OnWindow " + *rc_modkey + 207 new_keyfile += "NearestCorner}\n";
205 " Mouse3 :StartResizing NearestCorner\n";
206 } else if (strcasecmp((*rc_mode).c_str(), "Center") == 0) { 208 } else if (strcasecmp((*rc_mode).c_str(), "Center") == 0) {
207 new_keyfile += "OnWindow " + *rc_modkey + 209 new_keyfile += "Center}\n";
208 " Mouse3 :StartResizing Center\n";
209 } else { 210 } else {
210 new_keyfile += "OnWindow " + *rc_modkey + 211 new_keyfile += "BottomRight}\n";
211 " Mouse3 :StartResizing BottomRight\n";
212 } 212 }
213 new_keyfile += "\n"; // just for good looks 213 new_keyfile += "\n"; // just for good looks
214 new_keyfile += whole_keyfile; // don't forget user's old keybindings 214 new_keyfile += whole_keyfile; // don't forget user's old keybindings