mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	output: don't send a needs_frame event if already sent
This commit is contained in:
		
							parent
							
								
									a4c7c6db09
								
							
						
					
					
						commit
						7bce056f1d
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -683,6 +683,9 @@ bool wlr_output_export_dmabuf(struct wlr_output *output,
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void wlr_output_update_needs_frame(struct wlr_output *output) {
 | 
			
		||||
	if (output->needs_frame) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	output->needs_frame = true;
 | 
			
		||||
	wlr_signal_emit_safe(&output->events.needs_frame, output);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue