At 1259271987 time_t, Uli Schlachter wrote: > One thing though: Any idea what to do if wibox->parent->need_update is set? > (AKA > the pixmap being outdated)
In that case property::pixmap is emitted by the 'parent'. Then we look in all wiboxes if they have the wibox that emitted that signal as parent and an transparent bg: if yes, we tag them as needing update. This is not optimal (but still fast). The good solution is make wiboxes listen their parent property::pixmap signal, and update on signal receiption, but that was more complicated for a little gain, so I dropped that for now. :) > Or are you working your way downwards from the top-level wiboxes?... Nah, I still have a global array with all wiboxes ordered by X window id. It's useful for finding a wibox when you receive a X event for it. -- Julien Danjou // ᐰ <[email protected]> http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // Ferns will rule the world.
signature.asc
Description: Digital signature
