sway/sway/commands/kill.c
Markus Ongyerth 3fb60b6aed remove wlroots dependency from common code
Removes the wlroots dependency from the common code. To remove the
dependency on the header, the defines and log-level enum are copied
over.
This causes a redefine error if both the wlr and the sway log.h are
included.
2018-05-24 21:55:52 +02:00

15 lines
379 B
C

#include "log.h"
#include "sway/input/input-manager.h"
#include "sway/input/seat.h"
#include "sway/tree/view.h"
#include "sway/tree/container.h"
#include "sway/commands.h"
struct cmd_results *cmd_kill(int argc, char **argv) {
struct sway_container *con =
config->handler_context.current_container;
container_close(con);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}