Uli Schlachter <psychon <at> znc.in> writes:
>
> On 16.03.2013 12:37, Lampros Liontos wrote:
> > Whenever I switch desktop tags, the focus remains on a window in the tag
> > I left, because the mouse, while overtop a window, did not actually
> > enter the window by crossing its border. This can be fixed by leaving
> > and returning to a window, but can be annoying when concentrating on
> > something.
> >
> > Is there a way to set Awesome to turn off the "Sloppy" in Sloppy
> > Focus? More specifically, is there a way to set a strict
> > focus-follows-mouse policy? By enforcing a strict focus-follows-mouse,
> > the focus would always be on the window the mouse is over, regardless
> > of how the mouse got there. And since I use a tiled layout, the mouse
> > would likely always be over a window.
>
> Cheap hack that comes to my mind:
>
> function reset_focus()
> client.focus = mouse.object_under_pointer()
> end
> for s=1, screen.count() do
> screen[s]:connect_signal("arrange", reset_focus)
> end
>
> This should definitely handle the set-focus-after-tag-switch-case and
hopefully
> also some other ones.
>
> Cheers,
> Uli
>
> P.S.: This is for 3.5, 3.4 needs "add" instead of "connect".
> P.P.S: And of course all of this is untested.
Hi all,
I'd also like a strict focus-follows-mouse policy, and the above idea works
well for me, except that sometimes I'm not in a tiled layout, so the mouse
isn't necessarily over a window. Is there a way to set the focus to the
root window, or even something like the status bar (basically anything
except a client window)?
Thanks!
--
To unsubscribe, send mail to [email protected].