2018-01-21 14:46:31 +01:00
|
|
|
#include <wlr/util/log.h>
|
2018-01-21 20:15:10 +01:00
|
|
|
#include "log.h"
|
2018-01-20 20:10:11 +01:00
|
|
|
#include "sway/input/input-manager.h"
|
|
|
|
#include "sway/input/seat.h"
|
2018-03-30 05:41:33 +02:00
|
|
|
#include "sway/tree/view.h"
|
2018-03-31 06:44:17 +02:00
|
|
|
#include "sway/tree/container.h"
|
2018-01-20 20:10:11 +01:00
|
|
|
#include "sway/commands.h"
|
|
|
|
|
|
|
|
struct cmd_results *cmd_kill(int argc, char **argv) {
|
2018-03-31 06:44:17 +02:00
|
|
|
struct sway_container *con =
|
|
|
|
config->handler_context.current_container;
|
|
|
|
|
2018-04-04 01:23:59 +02:00
|
|
|
container_close(con);
|
2018-01-20 20:10:11 +01:00
|
|
|
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
|
|
|
}
|