Commit 0a27ce1f authored by Ander Conselvan de Oliveira's avatar Ander Conselvan de Oliveira Committed by Kristian Høgsberg
Browse files

data-device: Don't fake an attach event on drag icon surface

Emit a new drag icon signal instead and let the compositor handle the
unmapping of the icon surface.
parent ae8d4b59
......@@ -228,16 +228,9 @@ drag_grab_motion(struct wl_pointer_grab *grab,
static void
data_device_end_drag_grab(struct wl_seat *seat)
struct wl_resource *surface_resource;
struct wl_surface_interface *implementation;
if (seat->drag_surface) {
surface_resource = &seat->drag_surface->resource;
implementation = (struct wl_surface_interface *)
surface_resource, NULL, 0, 0);
seat->drag_surface = NULL;
wl_signal_emit(&seat->drag_icon_signal, NULL);
......@@ -247,7 +240,6 @@ data_device_end_drag_grab(struct wl_seat *seat)
seat->drag_data_source = NULL;
seat->drag_surface = NULL;
seat->drag_client = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment