awesome/lib/wibox
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
..
container wibox.container.margin: Do not produce negative sizes 2019-06-19 18:18:06 +02:00
layout doc: Fix all the property, theme and field types. 2019-06-08 18:14:14 -04:00
widget wibox.widget.base.place_widget_*: Protect against negative sizes 2019-06-19 18:20:09 +02:00
drawable.lua Add & use a dpi property on screen objects 2017-10-08 12:30:21 +02:00
hierarchy.lua Fix wibox.hierarchy's empty_clip() 2019-06-19 18:23:08 +02:00
init.lua doc: Add a constructor stereotype for everything. 2019-06-08 18:13:42 -04:00