[xmonad] Ignore single window for focus follows mouse?

Brent Yorgey byorgey at seas.upenn.edu
Mon Dec 5 20:57:53 CET 2011


On Mon, Dec 05, 2011 at 12:54:28PM -0400, Norbert Zeh wrote:
> wagnerdm at seas.upenn.edu [2011.12.05 0948 -0500]:
> > Quoting Joseph Garvin <joseph.h.garvin at gmail.com>:
> > 
> > >The FAQ mentions you can set focusFollowsMouse to false to disable it
> > >completely, but I'd like to disable focus following the mouse only when
> > >moving the mouse over a particular window (the pointer going over any other
> > >window should still cause that window to get focus). Is there an easy way
> > >to do that?
> > 
> > Maybe "followOnlyIf" from
> > http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-MagicFocus.html
> > will help you.
> 
> Slightly OT: I was reading the original question and thought "well, this is
> really something esoteric that probably requires a homebrewed solution".  So it
> turns out I was wrong.  Wow, I'm impressed!

I don't think it's that esoteric.  I use followOnlyIf for the
"inverse" situation: I have focusFollowsMouse off by default, except
for Gimp windows where it is enabled.

-Brent



More information about the xmonad mailing list