summaryrefslogtreecommitdiff
path: root/src/wall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wall.c')
-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;