Delayed autoraise

2014-03-31 Thread Eugen Dedu
Hi all, 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,

Re: Delayed autoraise

2014-03-31 Thread Uli Schlachter
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)

Re: Delayed autoraise

2014-03-31 Thread Manuel Kasser
Tested and in productive use: function delayFunctionCall(time, funct) local t = timer({ timeout = time or 0.01 }) t:connect_signal(timeout, function() t:stop(); funct() end) t:start() end just hand over your wanted delay (if nil, 0.01s is used) and the function doing what you want to

Re: Delayed autoraise

2014-03-31 Thread Eugen Dedu
On 31/03/14 12:56, Uli Schlachter wrote: 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)