mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	data-device: never cancel the source when offer is destroyed
The source could be used in another offer.
This commit is contained in:
		
							parent
							
								
									5d26da9d15
								
							
						
					
					
						commit
						4423f88fac
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -120,9 +120,6 @@ static void data_offer_handle_destroy(struct wl_client *client,
 | 
				
			||||||
	if (wl_resource_get_version(offer->resource) <
 | 
						if (wl_resource_get_version(offer->resource) <
 | 
				
			||||||
			WL_DATA_OFFER_ACTION_SINCE_VERSION) {
 | 
								WL_DATA_OFFER_ACTION_SINCE_VERSION) {
 | 
				
			||||||
		data_offer_dnd_finish(offer);
 | 
							data_offer_dnd_finish(offer);
 | 
				
			||||||
	} else if (offer->source->impl->dnd_finish) {
 | 
					 | 
				
			||||||
		// wlr_data_source_cancel can free the source
 | 
					 | 
				
			||||||
		wlr_data_source_cancel(offer->source);
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
out:
 | 
					out:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue