mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	send callbacks with send_frame_done
This commit is contained in:
		
							parent
							
								
									974d510585
								
							
						
					
					
						commit
						31e44c01b4
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -72,12 +72,7 @@ static void output_frame_view(swayc_t *view, void *data) {
 | 
			
		|||
	struct timespec now;
 | 
			
		||||
	clock_gettime(CLOCK_MONOTONIC, &now);
 | 
			
		||||
 | 
			
		||||
	struct wlr_frame_callback *cb, *cnext;
 | 
			
		||||
	wl_list_for_each_safe(cb, cnext,
 | 
			
		||||
			&surface->current->frame_callback_list, link) {
 | 
			
		||||
		wl_callback_send_done(cb->resource, timespec_to_msec(&now));
 | 
			
		||||
		wl_resource_destroy(cb->resource);
 | 
			
		||||
	}
 | 
			
		||||
	wlr_surface_send_frame_done(surface, &now);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void output_frame_notify(struct wl_listener *listener, void *data) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue