diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2011-08-29 21:32:47 -0400 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-01-19 15:17:53 +0200 |
commit | 207c0b692493bdc54e3a893be2e341249e432f08 (patch) | |
tree | 74a8bf827a793fb1dd86a19098127b61a605c115 | |
parent | 0722248c2284ebb6019cb163aa29470b89bba85d (diff) | |
download | metacity-207c0b692493bdc54e3a893be2e341249e432f08.tar.gz |
frames: Fix the visible region when we have a rounded bottom-right corner
https://bugzilla.gnome.org/show_bug.cgi?id=657661
-rw-r--r-- | src/ui/frames.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index e80781b6..5e90a03b 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -964,7 +964,7 @@ get_visible_region (MetaFrames *frames, for (i=0; i<corner; i++) { const int width = floor(0.5 + radius - sqrt(radius*radius - (radius-(i+0.5))*(radius-(i+0.5)))); - rect.x = frame_rect.x + frame_rect.width + width; + rect.x = frame_rect.x + frame_rect.width - width; rect.y = frame_rect.y + frame_rect.height - i - 1; rect.width = width; rect.height = 1; |