summaryrefslogtreecommitdiff
path: root/src/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bar.c')
-rw-r--r--src/bar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bar.c b/src/bar.c
index f2a6940..44aeac9 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -84,7 +84,7 @@ bar_x (screen_info *s, int width)
{
if (defaults.bar_location == SouthEastGravity
|| defaults.bar_location == NorthEastGravity)
- return s->root_attr.width - width - 2;
+ return s->root_attr.width - width - defaults.bar_border_width * 2;
else
return 0;
}
@@ -96,7 +96,7 @@ bar_y (screen_info *s)
|| defaults.bar_location == NorthEastGravity )
return 0;
else
- return s->root_attr.height - (FONT_HEIGHT (defaults.font) + defaults.bar_y_padding * 2) - 2;
+ return s->root_attr.height - (FONT_HEIGHT (defaults.font) + defaults.bar_y_padding * 2) - defaults.bar_border_width * 2;
}
void