wayland: Implement DND icon hotspot API
In Wayland, the hotspot of a DND icon is set using the buffer offset in wl_buffer.attach. To implement this, add a private API to cause the next wl_surface.attach to offset the new buffer with a given offset. Setting a DND icon hotspot sets this offset while also queuing a redraw of the window to trigger the wl_surface.attach. https://bugzilla.gnome.org/show_bug.cgi?id=759168
This commit is contained in:
		 Jonas Ådahl
					Jonas Ådahl
				
			
				
					committed by
					
						 Matthias Clasen
						Matthias Clasen
					
				
			
			
				
	
			
			
			 Matthias Clasen
						Matthias Clasen
					
				
			
						parent
						
							8884e82af8
						
					
				
				
					commit
					561833334b
				
			| @ -104,6 +104,10 @@ void            _gdk_wayland_window_register_dnd (GdkWindow *window); | ||||
| GdkDragContext *_gdk_wayland_window_drag_begin (GdkWindow *window, | ||||
| 						GdkDevice *device, | ||||
| 						GList     *targets); | ||||
| void            _gdk_wayland_window_offset_next_wl_buffer (GdkWindow *window, | ||||
|                                                            int        x, | ||||
|                                                            int        y); | ||||
|  | ||||
| GdkDragContext * _gdk_wayland_drop_context_new (struct wl_data_device *data_device); | ||||
| void _gdk_wayland_drag_context_set_source_window (GdkDragContext *context, | ||||
|                                                   GdkWindow      *window); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user