Check for marked_for_closure before checking for timeout
This commit is contained in:
		
							parent
							
								
									8f9e85f122
								
							
						
					
					
						commit
						a89287cb3e
					
				
							
								
								
									
										13
									
								
								src/queues.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								src/queues.c
									
									
									
									
									
								
							| @ -396,17 +396,20 @@ void queues_update(struct dunst_status status) | ||||
|                         continue; | ||||
|                 } | ||||
| 
 | ||||
|                 if (queues_notification_is_finished(n, status)){ | ||||
|                         queues_notification_close(n, REASON_TIME); | ||||
|                         iter = nextiter; | ||||
|                         continue; | ||||
|                 } else if (n->marked_for_closure) { | ||||
|                 if (n->marked_for_closure) { | ||||
|                         queues_notification_close(n, n->marked_for_closure); | ||||
|                         n->marked_for_closure = 0; | ||||
|                         iter = nextiter; | ||||
|                         continue; | ||||
|                 } | ||||
| 
 | ||||
| 
 | ||||
|                 if (queues_notification_is_finished(n, status)){ | ||||
|                         queues_notification_close(n, REASON_TIME); | ||||
|                         iter = nextiter; | ||||
|                         continue; | ||||
|                 } | ||||
| 
 | ||||
|                 if (!queues_notification_is_ready(n, status, true)) { | ||||
|                         g_queue_delete_link(displayed, iter); | ||||
|                         g_queue_insert_sorted(waiting, n, notification_cmp_data, NULL); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nikos Tsipinakis
						Nikos Tsipinakis