From d6a7559750b0c849979f279f3219c86ffb10a064 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 1 May 2015 18:50:06 +0200 Subject: [PATCH] wayland: Fix c&p typo in wl_listener notify callback The corresponding wl_notify field for destroy_data_device_icon() is drag_grab->drag_icon_listener, otherwise we're fetching a pointer that's slightly off where we want. --- src/wayland/meta-wayland-data-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c index 16f626d27..4c072980b 100644 --- a/src/wayland/meta-wayland-data-device.c +++ b/src/wayland/meta-wayland-data-device.c @@ -371,7 +371,7 @@ static void destroy_data_device_icon (struct wl_listener *listener, void *data) { MetaWaylandDragGrab *drag_grab = - wl_container_of (listener, drag_grab, drag_data_source_listener); + wl_container_of (listener, drag_grab, drag_icon_listener); drag_grab->drag_surface = NULL;