mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-26 01:40:35 -05:00
wlr_drag: cleanup icon_destroy listener when destroying icon
This commit is contained in:
parent
89000b7df0
commit
62ecec6d53
1 changed files with 1 additions and 0 deletions
|
|
@ -362,6 +362,7 @@ static const struct wlr_keyboard_grab_interface
|
||||||
static void drag_handle_icon_destroy(struct wl_listener *listener, void *data) {
|
static void drag_handle_icon_destroy(struct wl_listener *listener, void *data) {
|
||||||
struct wlr_drag *drag = wl_container_of(listener, drag, icon_destroy);
|
struct wlr_drag *drag = wl_container_of(listener, drag, icon_destroy);
|
||||||
drag->icon = NULL;
|
drag->icon = NULL;
|
||||||
|
wl_list_remove(&drag->icon_destroy.link);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void drag_handle_drag_source_destroy(struct wl_listener *listener,
|
static void drag_handle_drag_source_destroy(struct wl_listener *listener,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue