mirror of
https://github.com/swaywm/sway.git
synced 2026-03-10 05:34:03 -04:00
remove checks for command handlers
This commit is contained in:
parent
5b219a1598
commit
7262bf655f
5 changed files with 0 additions and 37 deletions
|
|
@ -6,14 +6,6 @@
|
|||
#include "sway/commands.h"
|
||||
|
||||
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 (config->handler_context.current_container == NULL) {
|
||||
wlr_log(L_DEBUG, "no container to kill");
|
||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||
}
|
||||
enum swayc_types type = config->handler_context.current_container->type;
|
||||
if (type != C_VIEW && type != C_CONTAINER) {
|
||||
return cmd_results_new(CMD_INVALID, NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue