summaryrefslogtreecommitdiff
path: root/src/bar.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-01-24 21:57:44 +0000
committersabetts <sabetts>2002-01-24 21:57:44 +0000
commit61432f3c09711bf6690af0d851a5fda92c009153 (patch)
treee5e2f378a8f6d19ebdb78ed7c15701c784495899 /src/bar.c
parent66ef30a4b79636b748107e00be805d1885a88af8 (diff)
downloadratpoison-61432f3c09711bf6690af0d851a5fda92c009153.zip
* src/messages.h (MESSAGE_FRAME_STRING): Pad the string with
spaces on both sides. * src/main.c (init_screen): Create the frame, input, and bar windows with a border width of defaults.bar_border_width. (init_defaults): initialize defaults.bar_border_width * src/bar.c (bar_x): Incorporate defaults.bar_border_width into calculations. (bar_y): likewise * src/actions.h (cmd_defbarborder): new prototype * src/actions.c (user_commands): new command "defbarborder" (cmd_defbarborder): new function * src/main.c (init_screen): create the help window with a 0 border width.
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