mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
added sway_terminate to exit cleanly
This commit is contained in:
parent
70f046c87a
commit
f26ed32e46
5 changed files with 19 additions and 6 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include "commands.h"
|
||||
#include "container.h"
|
||||
#include "handlers.h"
|
||||
#include "sway.h"
|
||||
|
||||
struct modifier_key {
|
||||
char *name;
|
||||
|
|
@ -186,7 +187,7 @@ static bool cmd_exit(struct sway_config *config, int argc, char **argv) {
|
|||
}
|
||||
// Close all views
|
||||
container_map(&root_container, kill_views, NULL);
|
||||
wlc_terminate();
|
||||
sway_terminate();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue