awesome/widgets
Gregor Best 9890561fd5 systray: don't crap up on odd-sized windows
Basically, we get the size we want the systray to be drawn at upon drawing
the tray, thus removing the query to the xcb_get_geometry function. As all
windows embedded in the systray are squares, their size is equal to their
height, so we simply force the size to be wibox_height * n x wibox_height,
where n is the number of embedded windows, instead of deriving it from the
largest embedded window (which, for example in the case of wicd, would be
200x200, way too much for one window on a regular wibox).

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-17 16:46:50 +02:00
..
graph.c widgets: add bool widget_geometries(wibox_t *) 2009-07-17 16:46:48 +02:00
imagebox.c widgets: add bool widget_geometries(wibox_t *) 2009-07-17 16:46:48 +02:00
progressbar.c widgets: add bool widget_geometries(wibox_t *) 2009-07-17 16:46:48 +02:00
systray.c systray: don't crap up on odd-sized windows 2009-07-17 16:46:50 +02:00
textbox.c widgets: get rid of align attribute 2009-07-17 16:46:49 +02:00