diff --git a/scripts/defaults.py b/scripts/defaults.py index 10c980ea..d269c9b0 100644 --- a/scripts/defaults.py +++ b/scripts/defaults.py @@ -8,7 +8,8 @@ import windowplacement # use a routine in here to place windows focus.fallback = 1 # set up the mouse buttons -focusmodel.setup_sloppy_focus() +focusmodel.setup_click_focus() # use focusmodel.setup_sloppy_focus() instead to + # make focus follow the cursor behavior.setup_window_clicks() behavior.setup_window_buttons() behavior.setup_scroll() diff --git a/scripts/focusmodel.py b/scripts/focusmodel.py index a52fb39b..67c46d59 100644 --- a/scripts/focusmodel.py +++ b/scripts/focusmodel.py @@ -17,6 +17,8 @@ def setup_click_focus(click_raise = 1): ob.MouseAction.Press, callbacks.focus) ob.mbind("Left", ob.MouseContext.Window, ob.MouseAction.Press, callbacks.focus) + ob.mbind("Middle", ob.MouseContext.Window, + ob.MouseAction.Press, callbacks.focus) #ob.mbind("A-Left", ob.MouseContext.Frame, ob.MouseAction.Press, focus) if click_raise: ob.mbind("Left", ob.MouseContext.Titlebar,