diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/bar.c | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -2,6 +2,8 @@ * src/bar.c (get_mark_box): take the bar padding into account when calculate the top of the highlight bar. + (prepare_bar): just use height for the height of the window. + (marked_message): add the padding to the height of the window. * src/window.c (give_window_focus): only save the pointer position when win and last_win aren't the same window. @@ -376,8 +376,7 @@ prepare_bar (rp_screen *s, int width, int height) XMoveResizeWindow (dpy, s->bar_window, bar_x (s, width), bar_y (s, height), - width, - height + defaults.bar_y_padding * 2); + width, height); XRaiseWindow (dpy, s->bar_window); XClearWindow (dpy, s->bar_window); @@ -513,7 +512,7 @@ marked_message (char *msg, int mark_start, int mark_end) /* Calculate the width and height of the window. */ num_lines = count_lines (msg, strlen(msg)); width = defaults.bar_x_padding * 2 + max_line_length(msg); - height = FONT_HEIGHT (defaults.font) * num_lines; + height = FONT_HEIGHT (defaults.font) * num_lines + defaults.bar_y_padding * 2; /* Display the string. */ prepare_bar (s, width, height); |