diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-03-16 21:42:45 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-03-16 21:42:45 -0600 |
commit | 2768af5a9bfd7cb5f874a8d61f4bc9a1188b82fd (patch) | |
tree | f9508c9acdac403c01643fb739e25fbf46b1876c /dwl.c | |
parent | 88f241d1cf54ffb7ec1f6e092ccb547c96f57ac9 (diff) |
make sure configure and activate listeners are removed from list
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1004,9 +1004,10 @@ destroynotify(struct wl_listener *listener, void *data) wl_list_remove(&c->set_title.link); wl_list_remove(&c->fullscreen.link); #ifdef XWAYLAND - if (c->type == X11Managed) + if (c->type != XDGShell) { + wl_list_remove(&c->configure.link); wl_list_remove(&c->activate.link); - else if (c->type == XDGShell) + } else #endif wl_list_remove(&c->commit.link); free(c); |