make default focus model click-focus.
make middle-click focus the window
This commit is contained in:
parent
1862fd052f
commit
58dc93abb9
2 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue