mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	output: add comment about needs_frame in wlr_output_schedule_frame
Add a comment to not forget why this call is necessary. References: https://github.com/swaywm/wlroots/pull/2053
This commit is contained in:
		
							parent
							
								
									41f9916ae5
								
							
						
					
					
						commit
						07737e85cc
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -621,6 +621,9 @@ static void schedule_frame_handle_idle_timer(void *data) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void wlr_output_schedule_frame(struct wlr_output *output) {
 | 
			
		||||
	// Make sure the compositor commits a new frame. This is necessary to make
 | 
			
		||||
	// clients which ask for frame callbacks without submitting a new buffer
 | 
			
		||||
	// work.
 | 
			
		||||
	wlr_output_update_needs_frame(output);
 | 
			
		||||
 | 
			
		||||
	if (output->frame_pending || output->idle_frame != NULL) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue