fix no xwayland

This commit is contained in:
ARDiDo 2021-09-15 18:34:26 -04:00
parent 90ed84be14
commit a4ce5e08ab

16
dwl.c
View File

@ -1048,16 +1048,14 @@ destroynotify(struct wl_listener *listener, void *data)
wl_list_remove(&c->map.link); wl_list_remove(&c->map.link);
wl_list_remove(&c->unmap.link); wl_list_remove(&c->unmap.link);
wl_list_remove(&c->destroy.link); wl_list_remove(&c->destroy.link);
if (c->type && c->type != XDGShell) { if (client_is_unmanaged(c)) {
#ifdef XWAYLAND #ifdef XWAYLAND
if (c->type == X11Managed) { wl_list_remove(&c->configure.link);
wl_list_remove(&c->activate.link); free(c);
wl_list_remove(&c->configure.link); return;
} else { } else if (c->type == X11Managed) {
wl_list_remove(&c->configure.link); wl_list_remove(&c->activate.link);
free(c); wl_list_remove(&c->configure.link);
return;
}
#endif #endif
} else { } else {
wl_list_remove(&c->commit.link); wl_list_remove(&c->commit.link);