Do not highlight items on inactive windows

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-07-09 00:38:51 +02:00
parent cac973fee3
commit e33f53aad5
2 changed files with 4 additions and 0 deletions

View File

@@ -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);