mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
make sure configure and activate listeners are removed from list
This commit is contained in:
parent
88f241d1cf
commit
2768af5a9b
1 changed files with 3 additions and 2 deletions
5
dwl.c
5
dwl.c
|
@ -1004,9 +1004,10 @@ destroynotify(struct wl_listener *listener, void *data)
|
||||||
wl_list_remove(&c->set_title.link);
|
wl_list_remove(&c->set_title.link);
|
||||||
wl_list_remove(&c->fullscreen.link);
|
wl_list_remove(&c->fullscreen.link);
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
if (c->type == X11Managed)
|
if (c->type != XDGShell) {
|
||||||
|
wl_list_remove(&c->configure.link);
|
||||||
wl_list_remove(&c->activate.link);
|
wl_list_remove(&c->activate.link);
|
||||||
else if (c->type == XDGShell)
|
} else
|
||||||
#endif
|
#endif
|
||||||
wl_list_remove(&c->commit.link);
|
wl_list_remove(&c->commit.link);
|
||||||
free(c);
|
free(c);
|
||||||
|
|
Loading…
Reference in a new issue