[xmonad] Mouse focus without entering window

Andrew Sackville-West andrewjsw at gmail.com
Tue Jan 26 19:24:18 UTC 2016


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.

Look at XMonad.Actions.UpdatePointer

A


On Tue, Jan 26, 2016 at 12:49 AM Ico <xmonad at zevv.nl> wrote:

> Hi Xmonad,
>
> I'd like xmonad to give focus to the window under my mouse cursor,
> independent of entering or leaving the window.
>
> Consider the following use case: one workspace with two windows. The
> mouse and focus are both in the left window. I use the keyboard to give
> focus to the right window (alt-tab or similar). To give focus back to
> the left window by mouse, I first need to move the mouse outside and
> then back into the window. Instead i'd like focus to pop back to window
> one as soon as I move the mouse. (Yes, I know I could/should give focus
> back with alt tab again, but that is not the point
>
> I have more similar use cases, some using multiple work spaces, where
> I'd like to see he same focus behaviour.
>
> According to #xmonad on irc some would consider this behaviour buggy,
> which I can understand. Is there still a way to make Xmonad act like
> described?
>
> Thank you,
>
> Ico
>
> --
> :wq
> ^X^Cy^K^X^C^C^C^C
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20160126/3d0dad84/attachment.html>


More information about the xmonad mailing list