summaryrefslogtreecommitdiffstats
path: root/cmd-choose-window.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-06-22 23:26:18 +0000
committerTiago Cunha <tcunha@gmx.com>2010-06-22 23:26:18 +0000
commit47b335dee7e794135e03cc0f5806483e55572b9f (patch)
tree39d927f0bd705e3630c9b23aff1e6f575fcce121 /cmd-choose-window.c
parent6c767242016a1288cf412cfcf4aff68ebec2714a (diff)
Sync OpenBSD patchset 724:
Having a list of winlinks->alerts for each session is stupid, just store the alert flags directly in the winlink itself.
Diffstat (limited to 'cmd-choose-window.c')
-rw-r--r--cmd-choose-window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c
index 641947f9..aa062340 100644
--- a/cmd-choose-window.c
+++ b/cmd-choose-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-choose-window.c,v 1.21 2010-04-22 21:51:27 tcunha Exp $ */
+/* $Id: cmd-choose-window.c,v 1.22 2010-06-22 23:26:18 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -81,11 +81,11 @@ cmd_choose_window_exec(struct cmd *self, struct cmd_ctx *ctx)
idx++;
flag = ' ';
- if (session_alert_has(s, wm, WINDOW_ACTIVITY))
+ if (wm->flags & WINLINK_ACTIVITY)
flag = '#';
- else if (session_alert_has(s, wm, WINDOW_BELL))
+ else if (wm->flags & WINLINK_BELL)
flag = '!';
- else if (session_alert_has(s, wm, WINDOW_CONTENT))
+ else if (wm->flags & WINLINK_CONTENT)
flag = '+';
else if (wm == s->curw)
flag = '*';