From bb7381765c435ac37e133f7fcc14a07823539050 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Sun, 17 Dec 2017 08:25:10 +0100 Subject: Scrollbar and right window border (corrected) When a scrollbar is on display in APP or TOD windows, the right vertical border (outside the scrollbar) is not highlighted when the window is selected. The scrollbar is always highlighted: - when APP or TOD is deselected - in configuration windows where borders otherwise are not The patch moves the scrollbar parameters (except highlight) from arguments of draw_scrollbar() to the function itself. The highlight argument was 1; instead it is set higher in the call hierarchy (wins_update_panels()) and passed on down. Signed-off-by: Lukas Fleischer --- src/listbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/listbox.c') diff --git a/src/listbox.c b/src/listbox.c index 6033896..d511556 100644 --- a/src/listbox.c +++ b/src/listbox.c @@ -134,7 +134,7 @@ void listbox_draw_deco(struct listbox *lb, int hilt) wins_scrollwin_draw_deco(&(lb->sw), hilt); } -void listbox_display(struct listbox *lb) +void listbox_display(struct listbox *lb, int hilt) { int i; @@ -145,7 +145,7 @@ void listbox_display(struct listbox *lb) lb->fn_draw(i, lb->sw.inner, lb->ch[i], is_sel, lb->cb_data); } - wins_scrollwin_display(&(lb->sw)); + wins_scrollwin_display(&(lb->sw), hilt); } int listbox_get_sel(struct listbox *lb) -- cgit v1.2.3-54-g00ecf