MetaWindowActor: Corner paths needs to be made in clockwise order
https://bugzilla.gnome.org/show_bug.cgi?id=657661
This commit is contained in:
parent
2f33d85a41
commit
622583a0d5
@ -2122,24 +2122,11 @@ update_corners (MetaWindowActor *self,
|
|||||||
top_right,
|
top_right,
|
||||||
0, M_PI*2);
|
0, M_PI*2);
|
||||||
|
|
||||||
/* bottom left */
|
|
||||||
x = borders->invisible.left;
|
|
||||||
y = borders->invisible.top + outer.height - bottom_left;
|
|
||||||
|
|
||||||
set_integral_bounding_rect (&corner_rects[2],
|
|
||||||
x, y, bottom_left, bottom_left);
|
|
||||||
|
|
||||||
cairo_arc (cr,
|
|
||||||
x + bottom_left,
|
|
||||||
y,
|
|
||||||
bottom_left,
|
|
||||||
0, M_PI*2);
|
|
||||||
|
|
||||||
/* bottom right */
|
/* bottom right */
|
||||||
x = borders->invisible.left + outer.width - bottom_right;
|
x = borders->invisible.left + outer.width - bottom_right;
|
||||||
y = borders->invisible.top + outer.height - bottom_right;
|
y = borders->invisible.top + outer.height - bottom_right;
|
||||||
|
|
||||||
set_integral_bounding_rect (&corner_rects[3],
|
set_integral_bounding_rect (&corner_rects[2],
|
||||||
x, y, bottom_right, bottom_right);
|
x, y, bottom_right, bottom_right);
|
||||||
|
|
||||||
cairo_arc (cr,
|
cairo_arc (cr,
|
||||||
@ -2148,6 +2135,19 @@ update_corners (MetaWindowActor *self,
|
|||||||
bottom_right,
|
bottom_right,
|
||||||
0, M_PI*2);
|
0, M_PI*2);
|
||||||
|
|
||||||
|
/* bottom left */
|
||||||
|
x = borders->invisible.left;
|
||||||
|
y = borders->invisible.top + outer.height - bottom_left;
|
||||||
|
|
||||||
|
set_integral_bounding_rect (&corner_rects[3],
|
||||||
|
x, y, bottom_left, bottom_left);
|
||||||
|
|
||||||
|
cairo_arc (cr,
|
||||||
|
x + bottom_left,
|
||||||
|
y,
|
||||||
|
bottom_left,
|
||||||
|
0, M_PI*2);
|
||||||
|
|
||||||
corner_path = cairo_copy_path (cr);
|
corner_path = cairo_copy_path (cr);
|
||||||
|
|
||||||
cairo_surface_destroy (surface);
|
cairo_surface_destroy (surface);
|
||||||
|
Loading…
Reference in New Issue
Block a user