summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2012-10-11 14:06:19 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-10-11 09:47:50 -0400
commit5fd5580c88ca21ab8642961ecf04a493f06a17bc (patch)
treebdbfd7f0eee4ca74d7e69aacaed0c2ea8b394680
parent8ec4ab64f0e4025dc13ce9819ffc2291872e99c5 (diff)
compositor: Unmap drag icon surface when its released
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.
-rw-r--r--src/compositor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c
index f4c933ed..f96d6752 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);