Permalink
Browse files

MetaWindowActor: Corner paths needs to be made in clockwise order

  • Loading branch information...
1 parent 2f33d85 commit 622583a0d5499d714ef8e3aa908554f8fb3c8957 @magcius magcius committed Aug 30, 2011
Showing with 12 additions and 12 deletions.
  1. +12 −12 src/compositor/meta-window-actor.c
@@ -2122,30 +2122,30 @@ update_corners (MetaWindowActor *self,
top_right,
0, M_PI*2);
- /* bottom left */
- x = borders->invisible.left;
- y = borders->invisible.top + outer.height - bottom_left;
+ /* bottom right */
+ x = borders->invisible.left + outer.width - bottom_right;
+ y = borders->invisible.top + outer.height - bottom_right;
set_integral_bounding_rect (&corner_rects[2],
- x, y, bottom_left, bottom_left);
+ x, y, bottom_right, bottom_right);
cairo_arc (cr,
- x + bottom_left,
+ x,
y,
- bottom_left,
+ bottom_right,
0, M_PI*2);
- /* bottom right */
- x = borders->invisible.left + outer.width - bottom_right;
- y = borders->invisible.top + outer.height - bottom_right;
+ /* bottom left */
+ x = borders->invisible.left;
+ y = borders->invisible.top + outer.height - bottom_left;
set_integral_bounding_rect (&corner_rects[3],
- x, y, bottom_right, bottom_right);
+ x, y, bottom_left, bottom_left);
cairo_arc (cr,
- x,
+ x + bottom_left,
y,
- bottom_right,
+ bottom_left,
0, M_PI*2);
corner_path = cairo_copy_path (cr);

0 comments on commit 622583a

Please sign in to comment.