1
0
Fork 0

wayland: Add getter for DnD origin surface

This private method will be used in later commits.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3821>
This commit is contained in:
Carlos Garnacho 2024-06-17 20:22:53 +02:00 committed by Marge Bot
parent 4bf02746e2
commit a4ec154c8b
2 changed files with 8 additions and 0 deletions

View file

@ -345,6 +345,12 @@ meta_wayland_drag_grab_get_device (MetaWaylandDragGrab *drag_grab,
return drag_grab->device;
}
MetaWaylandSurface *
meta_wayland_drag_grab_get_origin (MetaWaylandDragGrab *drag_grab)
{
return drag_grab->drag_origin;
}
static void
data_source_update_user_dnd_action (MetaWaylandDataSource *source,
ClutterModifierType modifiers)

View file

@ -98,3 +98,5 @@ MetaWaylandSeat * meta_wayland_drag_grab_get_seat (MetaWaylandDragGrab *drag_gra
ClutterInputDevice * meta_wayland_drag_grab_get_device (MetaWaylandDragGrab *drag_grab,
ClutterEventSequence **sequence);
MetaWaylandSurface * meta_wayland_drag_grab_get_origin (MetaWaylandDragGrab *drag_grab);