On Wed, May 26, 2010 at 3:50 PM, Uli Schlachter <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Am 24.05.2010 21:57, Daniel Graña wrote:
> >  http://gist.github.com/412326
>
> I wonder what happens if I have two wiboxes attached to the same screen...?
> (First one got a systray, second one doesnt)
>
> When the first one updates, it will register the systray. When the second
> one
> updates it will unregister it again. Next time the first one updates...
>
> Did I miss sth?
>

Hi, it looks like a valid bug report to me :(

And based on it, another patch approach
http://github.com/dangra/awesome/commit/d872bf...<http://github.com/dangra/awesome/commit/d872bf46073fcda5bf68008b8d699bd0d780fe31>

The notable things about this new patch:
* `wibox_t` gains a new field named `systray_count` to track the number of
systray widgets attached per wibox
* `wibox_systray_refresh` updates `wibox->systray_count` but do not
register/unregister screen systray
* Added `systray_refresh` function that is called after `wibox_refresh` in
`awesome_refresh` cb

As usual, thanks for your review, feel free to destroy another patch :)

regards,
Daniel

Reply via email to