Thanks Zveroy!  I've tried use a timer before, just don't write the
correct logic. Although use a timer just a workaround, it works for
most time.

On Fri, Oct 21, 2011 at 2:06 PM, Zveroy <zve...@gmail.com> wrote:
> Forgot send mail to list.
>
> ---------- Forwarded message ----------
>
> You must set focused client opacity after xcompgr end fading.  Try this code:
>
> fading_timer = timer({ timeout = 1.0 })
> client.add_signal('focus', function(c)
>    c.opacity = 0.9
>    fading_timer:stop()
>    fading_timer.timeout = 1.0
>    fading_timer:start()
> end)
> fading_timer:add_signal("timeout", function()
>    client.focus.opacity = 0.9
>    fading_timer:stop()
> end)
> client.add_signal('unfocus', function(c)
>    c.opacity = 0.5
> end)
>
> Adjust timeout for your needs.
>
> --
> To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
>



-- 
Rainux Luo

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to