From 7e0274bc08d483fa224540deae416f1e8c12dcbe Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Tue, 28 May 2019 20:43:12 +0200 Subject: Remove appointments panel scrollbar in multiple days mode A scrollbar gives the impression of a fixed list. But the list on display is automatically and silently changed as needed for movements in the panel or the calendar, thus creating the illusion of an endless list. Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.c b/src/utils.c index c04c0a6..0acad9f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -631,9 +631,13 @@ long min2sec(unsigned minutes) /* * Display a scroll bar when there are so many items that they * can not be displayed inside the corresponding panel. + * Leave it out in the appointments panel in when multiple days mode. */ void draw_scrollbar(struct scrollwin *sw, int hilt) { + if (sw == &lb_apt.sw && conf.multiple_days) + return; + int y = (conf.compact_panels ? 1 : 3); int h = sw->h - (conf.compact_panels ? 2 : 4); -- cgit v1.2.3-70-g09d2