mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 14:41:55 +00:00 
			
		
		
		
	[client] wayland: bind no-op drag-and-drop handlers
Otherwise, libwayland aborts when a drag into the Looking Glass window occurs.
This commit is contained in:
		
				
					committed by
					
						
						Geoffrey McRae
					
				
			
			
				
	
			
			
			
						parent
						
							97009027d1
						
					
				
				
					commit
					484012a90c
				
			@@ -318,9 +318,30 @@ static void dataDeviceHandleSelection(void * opaque,
 | 
			
		||||
  wlCb.currentRead = data;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void dataDeviceHandleEnter(void * data, struct wl_data_device * device,
 | 
			
		||||
    uint32_t serial, struct wl_surface * surface, wl_fixed_t sxW, wl_fixed_t syW,
 | 
			
		||||
    struct wl_data_offer * offer)
 | 
			
		||||
{
 | 
			
		||||
  // Do nothing.
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void dataDeviceHandleMotion(void * data, struct wl_data_device * device,
 | 
			
		||||
    uint32_t time, wl_fixed_t sxW, wl_fixed_t syW)
 | 
			
		||||
{
 | 
			
		||||
  // Do nothing.
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void dataDeviceHandleLeave(void * data, struct wl_data_device * device)
 | 
			
		||||
{
 | 
			
		||||
  // Do nothing.
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static const struct wl_data_device_listener dataDeviceListener = {
 | 
			
		||||
  .data_offer = dataDeviceHandleDataOffer,
 | 
			
		||||
  .selection = dataDeviceHandleSelection,
 | 
			
		||||
  .enter = dataDeviceHandleEnter,
 | 
			
		||||
  .motion = dataDeviceHandleMotion,
 | 
			
		||||
  .leave = dataDeviceHandleLeave,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
bool waylandCBInit(void)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user