mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
ipc: add shutdown event
This commit is contained in:
parent
f078f7fdfa
commit
e8b179e313
4 changed files with 21 additions and 2 deletions
|
|
@ -36,6 +36,7 @@ struct sway_server server;
|
|||
void sway_terminate(int exit_code) {
|
||||
terminate_request = true;
|
||||
exit_value = exit_code;
|
||||
ipc_event_shutdown("exit");
|
||||
wl_display_terminate(server.wl_display);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue