diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-20 18:43:44 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-20 18:43:44 +0200 |
commit | e53e77bf050067a44055892ae6b3afb1652c51ef (patch) | |
tree | 7dc9fed0c29848c0c0c08cfa140d57cf50d82fcb | |
parent | eb46ba7bdce0d7a4efbb0a3359e8d6a99c14a3bc (diff) | |
download | bemenu-e53e77bf050067a44055892ae6b3afb1652c51ef.tar.gz bemenu-e53e77bf050067a44055892ae6b3afb1652c51ef.tar.bz2 bemenu-e53e77bf050067a44055892ae6b3afb1652c51ef.zip |
Allows -l 1
-rw-r--r-- | lib/renderers/cairo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/renderers/cairo.h b/lib/renderers/cairo.h index c7b39b2..8c9d915 100644 --- a/lib/renderers/cairo.h +++ b/lib/renderers/cairo.h @@ -202,7 +202,7 @@ bm_cairo_paint(struct cairo *cairo, uint32_t width, uint32_t height, uint32_t ma struct bm_item **items = bm_menu_get_filtered_items(menu, &count); uint32_t lines = (menu->lines > 0 ? menu->lines : 1); - if (lines > 1) { + if (menu->lines > 0) { /* vertical mode */ const bool scrollbar = (menu->scrollbar > BM_SCROLLBAR_NONE && (menu->scrollbar != BM_SCROLLBAR_AUTOHIDE || count > lines) ? true : false); |