Hi,
On 31.03.2014 11:06, Eugen Dedu wrote:
> I have been using awesome since a few months now, but there is one thing
> I really miss: sloppy focus with autoraise after some delay.
>
> I modified rc.lua from
> client.connect_signal("focus", function(c) c.border_color =
> beautiful.border_focus end)
> to
> client.connect_signal("focus", function(c) c.border_color =
> beautiful.border_focus ; c:raise() end)
[...]
> How to achieve this autoraising after some delay? In other WM it is
> possible to set a delay before autoraising, for ex. 500 ms.
Untested:
autoraise_target = nil
autoraise_timer = timer { timeout = 0.5 }
autoraise_timer:connect_signal("timeout", function()
if autoraise_target then autoraise_target:raise() end
autoraise_timer:stop()
end)
client.connect_signal("mouse::enter", function(c)
autoraise_target = c
autoraise_timer:again()
end)
client.connect_signal("mouse::leave", function(c)
if autoraise_target == c then autoraise_target = nil end
end)
Uli
--
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].