mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	desktop/output: Debounce modesets
Output changes often happen in rapid succession. Instead of doing the modesets one by one, set a 10 millisecond debounce timer.
This commit is contained in:
		
							parent
							
								
									e32bdaa7be
								
							
						
					
					
						commit
						b04f4136bc
					
				
					 2 changed files with 25 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -135,6 +135,8 @@ struct sway_server {
 | 
			
		|||
	// Stores the nodes that have been marked as "dirty" and will be put into
 | 
			
		||||
	// the pending transaction.
 | 
			
		||||
	list_t *dirty_nodes;
 | 
			
		||||
 | 
			
		||||
	struct wl_event_source *delayed_modeset;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
extern struct sway_server server;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue