mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	export-dmabuf-v1: use wlr_output_event_commit.buffer
This commit is contained in:
		
							parent
							
								
									f016eca97c
								
							
						
					
					
						commit
						60b7267e18
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -66,7 +66,7 @@ static void frame_output_handle_commit(struct wl_listener *listener,
 | 
				
			||||||
	wl_list_init(&frame->output_commit.link);
 | 
						wl_list_init(&frame->output_commit.link);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_dmabuf_attributes attribs = {0};
 | 
						struct wlr_dmabuf_attributes attribs = {0};
 | 
				
			||||||
	if (!wlr_buffer_get_dmabuf(frame->output->front_buffer, &attribs)) {
 | 
						if (!wlr_buffer_get_dmabuf(event->buffer, &attribs)) {
 | 
				
			||||||
		zwlr_export_dmabuf_frame_v1_send_cancel(frame->resource,
 | 
							zwlr_export_dmabuf_frame_v1_send_cancel(frame->resource,
 | 
				
			||||||
			ZWLR_EXPORT_DMABUF_FRAME_V1_CANCEL_REASON_TEMPORARY);
 | 
								ZWLR_EXPORT_DMABUF_FRAME_V1_CANCEL_REASON_TEMPORARY);
 | 
				
			||||||
		frame_destroy(frame);
 | 
							frame_destroy(frame);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue