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 <crmafra@gmail.com>
This commit is contained in:
		
							parent
							
								
									66f11e0597
								
							
						
					
					
						commit
						d76ad29da2
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -845,10 +845,10 @@ static int periodic_mail_check(void)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				XUndefineCursor(display, iconwin);
 | 
									XUndefineCursor(display, iconwin);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				if ((mailstat == 2) && (mbox[i].notify[0] == '\0')) {
 | 
									/* Global notify */
 | 
				
			||||||
					/* for global notify */
 | 
									if (mailstat == 2)
 | 
				
			||||||
					NewMail = 1;
 | 
										NewMail = 1;
 | 
				
			||||||
				}
 | 
					
 | 
				
			||||||
				displayMsgCounters(i, mailstat, &Blink_Mode);
 | 
									displayMsgCounters(i, mailstat, &Blink_Mode);
 | 
				
			||||||
				/* update our idea of current time, as it
 | 
									/* update our idea of current time, as it
 | 
				
			||||||
				   may have changed as we check. */
 | 
									   may have changed as we check. */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue