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.
--
A learning experience is one of those things that say,
'You know that thing you just did? Don't do that.'
-- Douglas Adams
--
To unsubscribe, send mail to [email protected].