Hi,

I know this problem has been discussed before:
When I switch tags, move the mouse to a different part of the screen
and then switch back to the original tag, the window that was last
focused on this tag is now focused and not on the windows under the
mouse pointer. I'd like to have the windows under the mouse focused.

According to the mail-archive, adding this to rc.lua should fix the
problem in a previous awesome-release:
awful.hooks.arrange.register(function (screen)
        if awful.layout.get(screen) ~= awful.layout.suit.magnifier then
                client.focus = awful.mouse.client_under_pointer()
        end
end)

I'm using awesome 3.4 and tried writing the following in the signal
section of rc.lua. However it has no effect. I don't know how the
arrange signal is emitted or if it is emitted at all.

client.add_signal("arrange", function(screen) 
        if awful.layout.get(screen) ~=awful.layout.suit.magnifier then 
                client.focus = awful.mouse.client_under_pointer()
        end
end)

Regards,
Christian

Attachment: signature.asc
Description: PGP signature

Reply via email to