improve session lock support stability

This commit is contained in:
DanyLE
2024-04-17 01:08:26 +02:00
parent 5b29514b09
commit 4a7219f03c
3 changed files with 109 additions and 97 deletions

5
xdg.c
View File

@@ -208,7 +208,10 @@ static void xdg_toplevel_destroy(struct wl_listener *listener, void *data)
wl_event_source_remove(toplevel->configuration_timeout);
toplevel->configuration_timeout = NULL;
}
wl_list_remove(&toplevel->commit.link);
if(toplevel->mapped)
{
wl_list_remove(&toplevel->commit.link);
}
wl_list_remove(&toplevel->map.link);
wl_list_remove(&toplevel->unmap.link);
wl_list_remove(&toplevel->destroy.link);