Discussion:
[STUMP] Mouse focus, feature request
Jean Louis
2017-03-07 07:05:58 UTC
Permalink
Hello,

It would be good to implement the mouse focus feature, when mouse
moves to a window, that window get the focus. Such feauture could be
turned on by setting t or nil in some option.

Jean Louis
Joram Schrijver
2017-03-07 07:42:20 UTC
Permalink
This feature already exists, in the form of *mouse-focus-policy*. I'm a
bit surprised I can't find it in the manual, but it's defined and
documented here:

https://github.com/stumpwm/stumpwm/blob/e6dde22d940f4c1450da3d0f7e53aeb459f900e1/primitives.lisp#L1125.

--
Joram

On Tue, Mar 7, 2017, at 08:05 AM, Jean Louis wrote:
> Hello,
>
> It would be good to implement the mouse focus feature, when mouse
> moves to a window, that window get the focus. Such feauture could be
> turned on by setting t or nil in some option.
>
> Jean Louis
>
> _______________________________________________
> Stumpwm-devel mailing list
> Stumpwm-***@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
Michael Raskin
2017-03-07 07:49:21 UTC
Permalink
>It would be good to implement the mouse focus feature, when mouse
>moves to a window, that window get the focus. Such feauture could be
>turned on by setting t or nil in some option.

This is called (setf *mouse-focus-policy* :sloppy)
Jean Louis
2017-03-07 08:56:45 UTC
Permalink
Thanks much, will try it

Jean Louis

On March 7, 2017 10:49:21 AM GMT+03:00, Michael Raskin <***@rambler.ru> wrote:
>>It would be good to implement the mouse focus feature, when mouse
>>moves to a window, that window get the focus. Such feauture could be
>>turned on by setting t or nil in some option.
>
>This is called (setf *mouse-focus-policy* :sloppy)
Jean Louis
2017-03-08 22:12:48 UTC
Permalink
On Tue, Mar 07, 2017 at 08:49:21AM +0100, Michael Raskin wrote:
> >It would be good to implement the mouse focus feature, when mouse
> >moves to a window, that window get the focus. Such feauture could be
> >turned on by setting t or nil in some option.
>
> This is called (setf *mouse-focus-policy* :sloppy)

Well that is excellent, now I have got the full power...
Loading...