diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-05-31 20:32:02 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-05-31 23:20:54 +0000 |
commit | 93cde4831bca7055c38a1d6246fdcb84df07f7ec (patch) | |
tree | 15bc616a6da2139483d76ebe384d00a636b16441 /lib/renderers/x11/window.c | |
parent | 121367b9406b58c80591a21be3bd6e4771facb5e (diff) | |
download | bemenu-93cde4831bca7055c38a1d6246fdcb84df07f7ec.tar.gz bemenu-93cde4831bca7055c38a1d6246fdcb84df07f7ec.tar.bz2 bemenu-93cde4831bca7055c38a1d6246fdcb84df07f7ec.zip |
bemenu: add --line-height / -H option
Text is displayed vertically centered in a line. If unspecified, or 0,
the previous behaviour of making the height the size of the text, plus
two pixels on either side, is used, so there will be no change in
behaviour if this option is not used.
Fixes https://github.com/Cloudef/bemenu/issues/44.
Diffstat (limited to 'lib/renderers/x11/window.c')
-rw-r--r-- | lib/renderers/x11/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/renderers/x11/window.c b/lib/renderers/x11/window.c index 3fb24dc..cf2d986 100644 --- a/lib/renderers/x11/window.c +++ b/lib/renderers/x11/window.c @@ -72,7 +72,7 @@ bm_x11_window_render(struct window *window, const struct bm_menu *menu) cairo_push_group(buffer->cairo.cr); struct cairo_paint_result result; - window->notify.render(&buffer->cairo, buffer->width, buffer->height, window->max_height, menu, &result); + window->notify.render(&buffer->cairo, buffer->width, window->max_height, menu, &result); window->displayed = result.displayed; cairo_pop_group_to_source(buffer->cairo.cr); |