[PATCH weston] compositor: Unmap drag icon surface when its released
Ander Conselvan de Oliveira
ander.conselvan.de.oliveira at intel.com
Thu Oct 11 04:06:19 PDT 2012
libwayland-server was changed to emit the new drag icon signal instead
of faking an attach event with a NULL buffer so this has to be done on
this side.
---
src/compositor.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/compositor.c b/src/compositor.c
index f4c933e..f96d675 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2436,6 +2436,9 @@ device_setup_new_drag_surface(struct weston_seat *ws,
static void
device_release_drag_surface(struct weston_seat *seat)
{
+ if (weston_surface_is_mapped(seat->drag_surface))
+ weston_surface_unmap(seat->drag_surface);
+
seat->drag_surface->configure = NULL;
empty_region(&seat->drag_surface->pending.input);
wl_list_remove(&seat->drag_surface_destroy_listener.link);
--
1.7.9.5
More information about the wayland-devel
mailing list