<div dir="ltr">Well, I haven't tested it, but the code of `takeTopFocus` looks pretty different to me:<div><br></div><div>    withWindowSet $ maybe (setFocusX =<< asks theRoot) takeFocusX . W.peek</div><div><br></div><div>To me, that reads as "if nothing is focused, focus the root window", whereas the desired behavior is "no matter what's focused right now, focus the window under the mouse". So both the condition and the action to take seem different to me...?</div><div><br></div><div>~d </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 31, 2016 at 2:06 PM, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On Sun, Jan 31, 2016 at 3:26 PM, Daniel Wagner <span dir="ltr"><<a href="mailto:dmwit@dmwit.com" target="_blank">dmwit@dmwit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You should be able to do this with the `handleEventHook` [1], for which the `MotionEvent` [2] is the appropriate event to handle. You should be able to use `focus` [3] on the `Window` contained in the event to focus the window the mouse is currently over</blockquote></div><br></span>Isn't this basically takeTopFocus (i.e. ICCCM WM_TAKE_FOCUS)?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org">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>
<br></blockquote></div><br></div>