From d76ad29da2c93fd58347f2bb0045b5bd0bd616e8 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Mon, 21 Mar 2011 16:43:13 +0100 Subject: [PATCH] wmbiff: Fix global notification Global notification would only work if all 'notify' commands for all mailboxes were unset (=='\0'). Fix that. Signed-off-by: Carlos R. Mafra --- wmbiff-0.4.27/wmbiff/wmbiff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wmbiff-0.4.27/wmbiff/wmbiff.c b/wmbiff-0.4.27/wmbiff/wmbiff.c index 90b4e74..cc6b947 100644 --- a/wmbiff-0.4.27/wmbiff/wmbiff.c +++ b/wmbiff-0.4.27/wmbiff/wmbiff.c @@ -845,10 +845,10 @@ static int periodic_mail_check(void) XUndefineCursor(display, iconwin); - if ((mailstat == 2) && (mbox[i].notify[0] == '\0')) { - /* for global notify */ + /* Global notify */ + if (mailstat == 2) NewMail = 1; - } + displayMsgCounters(i, mailstat, &Blink_Mode); /* update our idea of current time, as it may have changed as we check. */