mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
cage: remove global server listeners on shutdown
This commit is contained in:
parent
e21c155bcd
commit
6efb3b5042
1 changed files with 14 additions and 0 deletions
14
cage.c
14
cage.c
|
|
@ -596,11 +596,25 @@ main(int argc, char *argv[])
|
||||||
wl_display_run(server.wl_display);
|
wl_display_run(server.wl_display);
|
||||||
|
|
||||||
#if CAGE_HAS_XWAYLAND
|
#if CAGE_HAS_XWAYLAND
|
||||||
|
if (xwayland) {
|
||||||
|
wl_list_remove(&server.new_xwayland_surface.link);
|
||||||
|
}
|
||||||
wlr_xwayland_destroy(xwayland);
|
wlr_xwayland_destroy(xwayland);
|
||||||
wlr_xcursor_manager_destroy(xcursor_manager);
|
wlr_xcursor_manager_destroy(xcursor_manager);
|
||||||
#endif
|
#endif
|
||||||
wl_display_destroy_clients(server.wl_display);
|
wl_display_destroy_clients(server.wl_display);
|
||||||
|
|
||||||
|
wl_list_remove(&server.new_virtual_pointer.link);
|
||||||
|
wl_list_remove(&server.new_virtual_keyboard.link);
|
||||||
|
wl_list_remove(&server.output_manager_apply.link);
|
||||||
|
wl_list_remove(&server.output_manager_test.link);
|
||||||
|
wl_list_remove(&server.xdg_toplevel_decoration.link);
|
||||||
|
wl_list_remove(&server.new_xdg_toplevel.link);
|
||||||
|
wl_list_remove(&server.new_xdg_popup.link);
|
||||||
|
wl_list_remove(&server.new_idle_inhibitor_v1.link);
|
||||||
|
wl_list_remove(&server.new_output.link);
|
||||||
|
wl_list_remove(&server.output_layout_change.link);
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (pid != 0)
|
if (pid != 0)
|
||||||
app_ret = cleanup_primary_client(pid);
|
app_ret = cleanup_primary_client(pid);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue