diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2012-10-11 14:06:19 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-11 09:47:50 -0400 |
commit | 5fd5580c88ca21ab8642961ecf04a493f06a17bc (patch) | |
tree | bdbfd7f0eee4ca74d7e69aacaed0c2ea8b394680 | |
parent | 8ec4ab64f0e4025dc13ce9819ffc2291872e99c5 (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.c | 3 |
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); |