lower dbus_poll_timeout when a notification is shown.
This increases the responsivness to keyboard and mouse input
This commit is contained in:
		
							parent
							
								
									9df4ebff18
								
							
						
					
					
						commit
						47a21c2ddf
					
				
							
								
								
									
										6
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								dunst.c
									
									
									
									
									
								
							@ -690,7 +690,11 @@ char *strtrim(char *str)
 | 
				
			|||||||
void run(void)
 | 
					void run(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
        while (True) {
 | 
					        while (True) {
 | 
				
			||||||
                dbus_poll(200);
 | 
					                if (visible) {
 | 
				
			||||||
 | 
					                        dbus_poll(50);
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                        dbus_poll(200);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                now = time(&now);
 | 
					                now = time(&now);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                /* move messages from notification_queue to displayed_notifications */
 | 
					                /* move messages from notification_queue to displayed_notifications */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user