use old focus/raise behavior for default alt+left/right mouse bindings

This commit is contained in:
Mark Tiefenbruck 2008-08-26 09:59:01 -04:00
parent 7d2240e2ce
commit 08c8c6431f
2 changed files with 9 additions and 9 deletions

View file

@ -12,8 +12,8 @@ OnToolbar Mouse4 :PrevWorkspace
OnToolbar Mouse5 :NextWorkspace OnToolbar Mouse5 :NextWorkspace
# alt + left/right click to move/resize a window # alt + left/right click to move/resize a window
OnWindow Mod1 Mouse1 :StartMoving OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
OnWindow Mod1 Mouse3 :StartResizing NearestCorner OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
# middle click a window's titlebar and drag to attach windows # middle click a window's titlebar and drag to attach windows
OnTitlebar Mouse2 :StartTabbing OnTitlebar Mouse2 :StartTabbing

View file

@ -199,16 +199,16 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) {
"session.modKey", "session.modKey",
"Session.ModKey"); "Session.ModKey");
new_keyfile += "OnWindow " + *rc_modkey + " Mouse1 :StartMoving\n"; new_keyfile += "OnWindow " + *rc_modkey +
" Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}\n";
new_keyfile += "OnWindow " + *rc_modkey +
" Mouse3 :MacroCmd {Raise} {Focus} {StartResizing ";
if (strcasecmp((*rc_mode).c_str(), "Quadrant") == 0) { if (strcasecmp((*rc_mode).c_str(), "Quadrant") == 0) {
new_keyfile += "OnWindow " + *rc_modkey + new_keyfile += "NearestCorner}\n";
" Mouse3 :StartResizing NearestCorner\n";
} else if (strcasecmp((*rc_mode).c_str(), "Center") == 0) { } else if (strcasecmp((*rc_mode).c_str(), "Center") == 0) {
new_keyfile += "OnWindow " + *rc_modkey + new_keyfile += "Center}\n";
" Mouse3 :StartResizing Center\n";
} else { } else {
new_keyfile += "OnWindow " + *rc_modkey + new_keyfile += "BottomRight}\n";
" Mouse3 :StartResizing BottomRight\n";
} }
new_keyfile += "\n"; // just for good looks new_keyfile += "\n"; // just for good looks
new_keyfile += whole_keyfile; // don't forget user's old keybindings new_keyfile += whole_keyfile; // don't forget user's old keybindings