mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	screenshooter: request a buffer swap
This commit is contained in:
		
							parent
							
								
									8d58ed502b
								
							
						
					
					
						commit
						a011a1cb07
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -138,6 +138,10 @@ static void screenshooter_shoot(struct wl_client *client,
 | 
			
		|||
	state->screenshot = screenshot;
 | 
			
		||||
	state->frame_listener.notify = output_frame_notify;
 | 
			
		||||
	wl_signal_add(&output->events.swap_buffers, &state->frame_listener);
 | 
			
		||||
 | 
			
		||||
	// Schedule a buffer swap
 | 
			
		||||
	output->needs_swap = true;
 | 
			
		||||
	wlr_output_schedule_frame(output);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static struct orbital_screenshooter_interface screenshooter_impl = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue