On Tue, Nov 1, 2011 at 6:50 PM, Anurag Priyam <[email protected]> wrote:
> Does `property::icon`[1] signal work?
>
> [1]: https://awesome.naquadah.org/wiki/Signals#client

Unfortunately not - two problems I run into intercepting the icon signal:

1. Whatever causes the Emacs and Acrobat icons to change, does not
emit the signal

2. Setting the icon from within the icon change handler causes
infinite recursion

client.connect_signal("property::icon_name", function (c)
                                             if c.class == "Emacs" then
                                                print("Emacs icon just changed")
                                                if c.icon ~= gnuimg then
                                                   c.icon = gnuimg
                                                   print("You won't get here 
til you hit a stack overflow")
                                                end
                                             end
end)

-- 
To unsubscribe, send mail to [email protected].

Reply via email to