mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-06 23:30:13 +01: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) {
|
||||
struct wlr_drag *drag = wl_container_of(listener, drag, icon_destroy);
|
||||
drag->icon = NULL;
|
||||
wl_list_remove(&drag->icon_destroy.link);
|
||||
}
|
||||
|
||||
static void drag_handle_drag_source_destroy(struct wl_listener *listener,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue