Re: clientwin_property_change_hook, enumerate.lua
Tuomo Valkonen <[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
On 2008-01-08, Felix Schmidt <[email protected]> wrote: > Other hooks work fine with the same code, so i wonder if there is anything > else i need to do to get notified about property changes. There shouldn't be. The following example (poorly-formatted copy-paste from Mod1+F3) works for me. local tmp=io.open('NCHG', 'w'); function nchg_fn(reg, how) if how=='name' then tmp:write(string.format('%s\t%s\n', reg:name(), reg.__typename)); tmp:flush(); end; end; ioncore.get_hook("region_notify_hook"):add(nchg_fn) -- Tuomo