summaryrefslogtreecommitdiff
path: root/src/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bar.c')
-rw-r--r--src/bar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bar.c b/src/bar.c
index c359919..3189d5b 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -83,8 +83,8 @@ show_bar (screen_info *s)
int
bar_x (screen_info *s, int width)
{
- if (defaults.bar_location == BOTTOM_RIGHT
- || defaults.bar_location == TOP_RIGHT)
+ if (defaults.bar_location == SouthEastGravity
+ || defaults.bar_location == NorthEastGravity)
return s->root_attr.width - width - 2;
else
return 0;
@@ -93,8 +93,8 @@ bar_x (screen_info *s, int width)
int
bar_y (screen_info *s)
{
- if (defaults.bar_location == TOP_LEFT
- || defaults.bar_location == TOP_RIGHT )
+ if (defaults.bar_location == NorthWestGravity
+ || defaults.bar_location == NorthEastGravity )
return 0;
else
return s->root_attr.height - (FONT_HEIGHT (defaults.font) + defaults.bar_y_padding * 2) - 2;