From e33f53aad500d615883a1acc33f3f956eb90506b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 9 Jul 2014 00:38:51 +0200 Subject: Do not highlight items on inactive windows Signed-off-by: Lukas Fleischer --- src/ui-todo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui-todo.c') diff --git a/src/ui-todo.c b/src/ui-todo.c index 49cf371..900bbfe 100644 --- a/src/ui-todo.c +++ b/src/ui-todo.c @@ -153,6 +153,8 @@ void ui_todo_draw(int n, WINDOW *win, int y, int hilt, void *cb_data) mark[0] = todo->id > 0 ? '0' + todo->id : 'X'; mark[1] = todo->note ? '>' : '.'; + hilt = hilt && (wins_slctd() == TOD); + if (hilt) custom_apply_attr(win, ATTR_HIGHEST); -- cgit v1.2.3-54-g00ecf