use old focus/raise behavior for default alt+left/right mouse bindings
Mark Tiefenbruck mark@fluxbox.org
2 files changed,
9 insertions(+),
9 deletions(-)
M
data/keys
→
data/keys
@@ -12,8 +12,8 @@ OnToolbar Mouse4 :PrevWorkspace
OnToolbar Mouse5 :NextWorkspace # alt + left/right click to move/resize a window -OnWindow Mod1 Mouse1 :StartMoving -OnWindow Mod1 Mouse3 :StartResizing NearestCorner +OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving} +OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner} # middle click a window's titlebar and drag to attach windows OnTitlebar Mouse2 :StartTabbing
M
util/fluxbox-update_configs.cc
→
util/fluxbox-update_configs.cc
@@ -199,16 +199,16 @@ FbTk::Resource<string> rc_modkey(rm, "Mod1",
"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) { - new_keyfile += "OnWindow " + *rc_modkey + - " Mouse3 :StartResizing NearestCorner\n"; + new_keyfile += "NearestCorner}\n"; } else if (strcasecmp((*rc_mode).c_str(), "Center") == 0) { - new_keyfile += "OnWindow " + *rc_modkey + - " Mouse3 :StartResizing Center\n"; + new_keyfile += "Center}\n"; } else { - new_keyfile += "OnWindow " + *rc_modkey + - " Mouse3 :StartResizing BottomRight\n"; + new_keyfile += "BottomRight}\n"; } new_keyfile += "\n"; // just for good looks new_keyfile += whole_keyfile; // don't forget user's old keybindings