mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-08 08:21:00 -04:00
fix no xwayland
This commit is contained in:
parent
90ed84be14
commit
a4ce5e08ab
1 changed files with 7 additions and 9 deletions
10
dwl.c
10
dwl.c
|
|
@ -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->activate.link);
|
|
||||||
wl_list_remove(&c->configure.link);
|
|
||||||
} else {
|
|
||||||
wl_list_remove(&c->configure.link);
|
wl_list_remove(&c->configure.link);
|
||||||
free(c);
|
free(c);
|
||||||
return;
|
return;
|
||||||
}
|
} else if (c->type == X11Managed) {
|
||||||
|
wl_list_remove(&c->activate.link);
|
||||||
|
wl_list_remove(&c->configure.link);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
wl_list_remove(&c->commit.link);
|
wl_list_remove(&c->commit.link);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue