mirror of
https://github.com/brl/mutter.git
synced 2025-06-25 14:38:16 +00:00
wayland: Introduce MetaWaylandSurfaceRole
Introduce surface roles and use it to ensure a surface never changes role. https://bugzilla.gnome.org/show_bug.cgi?id=744452
This commit is contained in:
@ -410,6 +410,12 @@ data_device_start_drag (struct wl_client *client,
|
||||
seat->pointer.grab != &seat->pointer.default_grab)
|
||||
return;
|
||||
|
||||
if (meta_wayland_surface_set_role (surface,
|
||||
META_WAYLAND_SURFACE_ROLE_DND,
|
||||
resource,
|
||||
WL_DATA_DEVICE_ERROR_ROLE) != 0)
|
||||
return;
|
||||
|
||||
data_device->current_grab = drag_grab = g_slice_new0 (MetaWaylandDragGrab);
|
||||
|
||||
drag_grab->generic.interface = &drag_grab_interface;
|
||||
|
Reference in New Issue
Block a user