awesome/lib/wibox/widget
Uli Schlachter f859131bf3 wibox.widget.systray: Properly work when rotated (FS#1115)
The systray widget's fit() function worked in the (rotated) user coordinate
space while the draw() function used device coordinates (unrotated). This meant
that width and height were swapped up in the calculations and the systray ended
up being way too small.

Fix this by making the draw() function use user coordinates, too. This means
that it needs some new magic to detect a rotated coordinate space. This, in
turn, means that the systray is now automatically rotated when you put it into a
rotate layout.

This might cause some minor breakage because people no longer need to call
:set_horizontal() on the widgets.

Thanks a lot to Alexander Gehrke for his help!

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-02-16 22:14:08 +01:00
..
background.lua.in widgets: Add some constructor arguments 2012-11-25 19:16:31 +01:00
base.lua.in Fix errors from missing themes 2012-11-27 22:55:42 +01:00
imagebox.lua.in imagebox: Use a different entry for saving the image 2012-11-27 17:24:54 +01:00
init.lua.in Fix warnings from LDoc 2012-11-19 15:35:32 +01:00
systray.lua.in wibox.widget.systray: Properly work when rotated (FS#1115) 2013-02-16 22:14:08 +01:00
textbox.lua.in widgets: Add some constructor arguments 2012-11-25 19:16:31 +01:00