<div dir="ltr"><div>One solution, while not ideal,  is to morph the pointer to follow window focus. Then grabbing the mouse and moving it to the desired window would force focus to follow you back there. This isn't strictly what you're asking for but does provide a pretty intuitive recovery of mouse oriented focus.<br><br></div><div>Look at XMonad.Actions.UpdatePointer<br></div><div><br></div>A<br><br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 26, 2016 at 12:49 AM Ico <<a href="mailto:xmonad@zevv.nl">xmonad@zevv.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Xmonad,<br>
<br>
I'd like xmonad to give focus to the window under my mouse cursor,<br>
independent of entering or leaving the window.<br>
<br>
Consider the following use case: one workspace with two windows. The<br>
mouse and focus are both in the left window. I use the keyboard to give<br>
focus to the right window (alt-tab or similar). To give focus back to<br>
the left window by mouse, I first need to move the mouse outside and<br>
then back into the window. Instead i'd like focus to pop back to window<br>
one as soon as I move the mouse. (Yes, I know I could/should give focus<br>
back with alt tab again, but that is not the point<br>
<br>
I have more similar use cases, some using multiple work spaces, where<br>
I'd like to see he same focus behaviour.<br>
<br>
According to #xmonad on irc some would consider this behaviour buggy,<br>
which I can understand. Is there still a way to make Xmonad act like<br>
described?<br>
<br>
Thank you,<br>
<br>
Ico<br>
<br>
--<br>
:wq<br>
^X^Cy^K^X^C^C^C^C<br>
_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a><br>
</blockquote></div>