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.
This commit is contained in:
committed by
Kristian Høgsberg
parent
8ec4ab64f0
commit
5fd5580c88
@@ -2436,6 +2436,9 @@ device_setup_new_drag_surface(struct weston_seat *ws,
|
|||||||
static void
|
static void
|
||||||
device_release_drag_surface(struct weston_seat *seat)
|
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;
|
seat->drag_surface->configure = NULL;
|
||||||
empty_region(&seat->drag_surface->pending.input);
|
empty_region(&seat->drag_surface->pending.input);
|
||||||
wl_list_remove(&seat->drag_surface_destroy_listener.link);
|
wl_list_remove(&seat->drag_surface_destroy_listener.link);
|
||||||
|
|||||||
Reference in New Issue
Block a user