mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
fix no xwayland
This commit is contained in:
parent
90ed84be14
commit
a4ce5e08ab
16
dwl.c
16
dwl.c
@ -1048,16 +1048,14 @@ destroynotify(struct wl_listener *listener, void *data)
|
||||
wl_list_remove(&c->map.link);
|
||||
wl_list_remove(&c->unmap.link);
|
||||
wl_list_remove(&c->destroy.link);
|
||||
if (c->type && c->type != XDGShell) {
|
||||
if (client_is_unmanaged(c)) {
|
||||
#ifdef XWAYLAND
|
||||
if (c->type == X11Managed) {
|
||||
wl_list_remove(&c->activate.link);
|
||||
wl_list_remove(&c->configure.link);
|
||||
} else {
|
||||
wl_list_remove(&c->configure.link);
|
||||
free(c);
|
||||
return;
|
||||
}
|
||||
wl_list_remove(&c->configure.link);
|
||||
free(c);
|
||||
return;
|
||||
} else if (c->type == X11Managed) {
|
||||
wl_list_remove(&c->activate.link);
|
||||
wl_list_remove(&c->configure.link);
|
||||
#endif
|
||||
} else {
|
||||
wl_list_remove(&c->commit.link);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user