mirror of
https://github.com/brl/mutter.git
synced 2025-08-09 18:04:44 +00:00
surface: honor wl_surface_commit()s on the DnD surface
And update the surface when this happens.
This commit is contained in:
@@ -580,3 +580,18 @@ meta_wayland_data_device_set_keyboard_focus (MetaWaylandDataDevice *data_device)
|
||||
wl_data_device_send_selection (data_device_resource, offer);
|
||||
}
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_wayland_data_device_is_dnd_surface (MetaWaylandDataDevice *data_device,
|
||||
MetaWaylandSurface *surface)
|
||||
{
|
||||
return data_device->current_grab &&
|
||||
data_device->current_grab->drag_surface == surface;
|
||||
}
|
||||
|
||||
void
|
||||
meta_wayland_data_device_update_dnd_surface (MetaWaylandDataDevice *data_device)
|
||||
{
|
||||
if (data_device->current_grab)
|
||||
drag_grab_update_dnd_surface (data_device->current_grab);
|
||||
}
|
||||
|
Reference in New Issue
Block a user