Closed jrobsonchase closed 12 years ago
Instead of hard-coding the behavior, I've merged your pull request but modified it so that it can be configured via options from config/options.wini
.
Three new options were added: focus_follows_mouse_focus
, focus_follows_mouse_raise
, and focus_follows_mouse_startup_focus
. The first is enabled by default, but the latter two are disabled by default. (This keeps old behavior unchanged.)
To replicate the behavior introduced by your pull request, enable all three options.
N.B. If people want to get fancier with focus follows mouse, the "right" solution is probably to allow people to run arbitrary Gribble commands when a pointer enter/leaves a window.
The FFM behavior bothered me, so I made a couple of changes.
In the Floating layout, windows are also raised when focused.
In all layouts, new windows are focused regardless of FFM setting.