mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
dont allow kill command in config
This commit is contained in:
parent
38a1628a76
commit
beb3805cf0
@ -6,6 +6,10 @@
|
|||||||
#include "sway/commands.h"
|
#include "sway/commands.h"
|
||||||
|
|
||||||
struct cmd_results *cmd_kill(int argc, char **argv) {
|
struct cmd_results *cmd_kill(int argc, char **argv) {
|
||||||
|
if (config->reading) {
|
||||||
|
return cmd_results_new(CMD_FAILURE, "kill",
|
||||||
|
"Command 'kill' cannot be used in the config file");
|
||||||
|
}
|
||||||
if (!sway_assert(config->handler_context.current_container,
|
if (!sway_assert(config->handler_context.current_container,
|
||||||
"cmd_kill called without container context")) {
|
"cmd_kill called without container context")) {
|
||||||
return cmd_results_new(CMD_INVALID, NULL,
|
return cmd_results_new(CMD_INVALID, NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user