mirror of
https://github.com/swaywm/sway.git
synced 2026-07-04 00:06:09 -04:00
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.
15 lines
379 B
C
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);
|
|
}
|