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:
parent
1a09f44c60
commit
2a07a0ce9e
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue