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/ui-todo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui-todo.c') diff --git a/src/ui-todo.c b/src/ui-todo.c index d75f724..cc186df 100644 --- a/src/ui-todo.c +++ b/src/ui-todo.c @@ -268,7 +268,7 @@ void ui_todo_sel_move(int delta) } /* Updates the TODO panel. */ -void ui_todo_update_panel(int which_pan) +void ui_todo_update_panel(int hilt) { /* * This is used and modified by ui_todo_draw() to avoid quadratic @@ -277,7 +277,7 @@ void ui_todo_update_panel(int which_pan) llist_item_t *p = LLIST_FIRST(&todolist); listbox_set_cb_data(&lb_todo, &p); - listbox_display(&lb_todo); + listbox_display(&lb_todo, hilt); } /* Change an item priority by pressing '+' or '-' inside TODO panel. */ -- cgit v1.2.3-54-g00ecf