mirror of
https://github.com/swaywm/sway.git
synced 2026-04-02 07:15:50 -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
|
|
@ -7,19 +7,10 @@
|
|||
|
||||
struct cmd_results *cmd_layout(int argc, char **argv) {
|
||||
struct cmd_results *error = NULL;
|
||||
if (config->reading) {
|
||||
return cmd_results_new(CMD_FAILURE, "layout", "Can't be used in config file.");
|
||||
}
|
||||
if (!config->active) {
|
||||
return cmd_results_new(CMD_FAILURE, "layout", "Can only be used when sway is running.");
|
||||
}
|
||||
if ((error = checkarg(argc, "layout", EXPECTED_MORE_THAN, 0))) {
|
||||
return error;
|
||||
}
|
||||
swayc_t *parent = config->handler_context.current_container;
|
||||
if (!sway_assert(parent != NULL, "command called without container context")) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// TODO: floating
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue