summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuinn Storm <quinn@darter.(none)>2007-05-07 18:40:04 -0400
committerQuinn Storm <quinn@darter.(none)>2007-05-07 18:40:04 -0400
commit410baf7adfd5ab5e2b6856ef3bc5a25174a2bdc8 (patch)
tree6f69d5086122ee9026b345e3df02616e99bf49ea
parent51f3b9df9a7439a9b776e304cb7e6a61ab6b527c (diff)
downloadberyl-premerge-410baf7adfd5ab5e2b6856ef3bc5a25174a2bdc8.tar.gz
beryl-premerge-410baf7adfd5ab5e2b6856ef3bc5a25174a2bdc8.tar.bz2
wall - fix drawing to properly take into account size of outline, this fixes both switcher modes to not have a placement mismatch
-rw-r--r--src/wall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wall.c b/src/wall.c
index 4119660..76153c9 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -338,8 +338,8 @@ static void wallDrawSwitcherBackground(CompScreen *s)
cairo_pattern_destroy(pattern);
- int viewportWidth = floor((width - border*(s->hsize+1))/hsize);
- int viewportHeight = floor((height - border*(s->vsize+1))/vsize);
+ int viewportWidth = floor((width - border*(hsize+1))/hsize - outline/2.0f);
+ int viewportHeight = floor((height - border*(vsize+1))/vsize - outline/2.0f);
ws->viewportWidth = viewportWidth;
ws->viewportHeight = viewportHeight;
ws->viewportBorder = border;