Re: [dwm] Focus follows mouse

From: Premysl Hruby <>
Date: Tue, 20 Jan 2009 12:14:21 +0100

On (20/01/09 12:08), wrote:
> To: dwm mail list <>
> From:
> Subject: [dwm] Focus follows mouse
> Reply-To: dwm mail list <>
> List-Id: dwm mail list <>
> User-Agent: Mutt/1.5.18 (2008-05-17)
> Hi,
> At the time I switched from wmii back to dwm I was evaluating couple of
> other WM from the family and I liked a feature I cannot currently tell
> where it was (but I suspect it was Xmonad): switch off the
> focus-follows-mouse behaviour.
> Can anybody give a sketch how to achieve this in dwm (or give a hint where
> to look at in the source)?
> Thanx in advance!

Hi, to disable follow mouse behaviour, simply comment off:

            [EnterNotify] = enternotify,

in definiton of struct handler in dwm.c (or you can this and whole
enternotify() delete). Alternatively, you can define some new toggle in
dwm.c, write some control function for toggling (so you can toggle
follow mouse on/off with keypress) and put something like:


into enternotify();


Premysl "Anydot" Hruby,
Received on Tue Jan 20 2009 - 11:14:21 UTC

This archive was generated by hypermail 2.2.0 : Tue Jan 20 2009 - 11:24:04 UTC