summaryrefslogtreecommitdiff
path: root/src/ui-day.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-09 00:38:51 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-09 00:38:51 +0200
commite33f53aad500d615883a1acc33f3f956eb90506b (patch)
tree9055719664f121b2219dfb0a3c21c891a14f9794 /src/ui-day.c
parentcac973fee3d828fac641f6de771054a32cfbbfe3 (diff)
downloadcalcurse-e33f53aad500d615883a1acc33f3f956eb90506b.zip
Do not highlight items on inactive windows
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/ui-day.c')
-rw-r--r--src/ui-day.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui-day.c b/src/ui-day.c
index d6be872..a39b88b 100644
--- a/src/ui-day.c
+++ b/src/ui-day.c
@@ -842,6 +842,8 @@ void ui_day_draw(int n, WINDOW *win, int y, int hilt, void *cb_data)
struct day_item *item = day_get_item(n);
int width = lb_apt.sw.w;
+ hilt = hilt && (wins_slctd() == APP);
+
if (item->type == EVNT || item->type == RECUR_EVNT) {
day_display_item(item, win, !hilt, width, y, 1);
} else if (item->type == APPT || item->type == RECUR_APPT) {