awesome/lib
Uli Schlachter a4dadde335 Fix wibox.hierarchy's empty_clip()
This function checks if a given cairo context has an empty clip. It was
written with the assumption that cairo_clip_extents() produces the x, y,
width, height of the clip extents. However, that function actually
produces x1, y1, x2, y2, where (x1, y1) and (x2, y2) are the corners of
the rectangles.

Due to the way the function is written, it will return non-zero numbers
when there is a translation (cr:translate()). Thus, this function worked
basically never.

Fix this by checking if both points have the same X- or Y-coordinate.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-06-19 18:23:08 +02:00
..
awful doc: Fix all the property, theme and field types. 2019-06-08 18:14:14 -04:00
beautiful doc: Fix all the property, theme and field types. 2019-06-08 18:14:14 -04:00
gears doc: Fix all the property, theme and field types. 2019-06-08 18:14:14 -04:00
menubar doc: Fix all the property, theme and field types. 2019-06-08 18:14:14 -04:00
naughty doc: Update to the newer doc conventions. 2019-06-08 18:56:08 -04:00
wibox Fix wibox.hierarchy's empty_clip() 2019-06-19 18:23:08 +02:00
beautiful.lua Add pointless naughty.lua and beautiful.lua files (#1259) 2016-12-08 23:53:50 +01:00
naughty.lua Add pointless naughty.lua and beautiful.lua files (#1259) 2016-12-08 23:53:50 +01:00