make default focus model click-focus.

make middle-click focus the window
This commit is contained in:
Dana Jansens 2003-01-29 08:51:17 +00:00
parent 1862fd052f
commit 58dc93abb9
2 changed files with 4 additions and 1 deletions

View file

@ -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()

View file

@ -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,