mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
wayland: fdm_del() now closes the FD
This commit is contained in:
parent
80c4721e57
commit
b793919aba
1 changed files with 3 additions and 4 deletions
|
|
@ -556,11 +556,10 @@ wayl_destroy(struct wayland *wayl)
|
|||
if (wayl == NULL)
|
||||
return;
|
||||
|
||||
if (wayl->kbd.repeat.fd != 0) {
|
||||
fdm_del(wayl->fdm, wayl->kbd.repeat.fd);
|
||||
close(wayl->kbd.repeat.fd);
|
||||
}
|
||||
|
||||
fdm_del(wayl->fdm, wayl->kbd.repeat.fd);
|
||||
|
||||
tll_foreach(wayl->monitors, it) {
|
||||
free(it->item.name);
|
||||
if (it->item.xdg != NULL)
|
||||
|
|
@ -628,7 +627,7 @@ wayl_destroy(struct wayland *wayl)
|
|||
if (wayl->registry != NULL)
|
||||
wl_registry_destroy(wayl->registry);
|
||||
if (wayl->display != NULL) {
|
||||
fdm_del(wayl->fdm, wl_display_get_fd(wayl->display));
|
||||
fdm_del_no_close(wayl->fdm, wl_display_get_fd(wayl->display));
|
||||
wl_display_disconnect(wayl->display);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue