On Wed, 13 Oct 2010 22:37:56 +0200
Uli Schlachter <[email protected]> wrote:
> tag.connect_signal("property::selected", function() local c =
> mouse.object_under_pointer() if c.name then client.focus = c end)
>
> Untested, of course. Also, I'm not sure if this actually works on the
> 3.4 branch. Perhaps it's necessary to bind this on every single tag
> instead of the tag class, so perhaps:
>
> awful.tag.attached_connect_signal(nil, function() local c =
> mouse.object_under_pointer() if c.name then client.focus = c end)
>
Hello,
That's what I added to my rc.lua:
awful.tag.attached_add_signal(nil, "property::selected", function()
local c = mouse.object_under_pointer()
if c.name then client.focus = c end
end)
But it only printed errors on the console when switching tags saying that it
can't access the 'c' variable outside its scope.
But never mind, the problem was that gkrellm was taking off the focus (I didn't
notice the reason before). After tweaking gkrellm a little, I am able to enjoy
awesome's default behavior, which is a lot better than what I was asking about.
Thank you and sorry for disturbing.
I really like awesome, only lack time to learn Lua:)
Thanks for all,
Good luck,
Yury.
--
To unsubscribe, send mail to [email protected].