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>
(cherry picked from commit a4ec154c8b)
This commit is contained in:
Carlos Garnacho 2024-06-17 20:22:53 +02:00 committed by Jonas Ådahl
parent 1a09f44c60
commit 2a07a0ce9e
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; return drag_grab->device;
} }
MetaWaylandSurface *
meta_wayland_drag_grab_get_origin (MetaWaylandDragGrab *drag_grab)
{
return drag_grab->drag_origin;
}
static void static void
data_source_update_user_dnd_action (MetaWaylandDataSource *source, data_source_update_user_dnd_action (MetaWaylandDataSource *source,
ClutterModifierType modifiers) 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, ClutterInputDevice * meta_wayland_drag_grab_get_device (MetaWaylandDragGrab *drag_grab,
ClutterEventSequence **sequence); ClutterEventSequence **sequence);
MetaWaylandSurface * meta_wayland_drag_grab_get_origin (MetaWaylandDragGrab *drag_grab);