mirror of
https://github.com/swaywm/sway.git
synced 2026-03-24 09:06:16 -04:00
Deny several commands when there's no outputs connected
This commit is contained in:
parent
ea2497d35c
commit
885963f11f
13 changed files with 52 additions and 0 deletions
|
|
@ -14,6 +14,10 @@ static void close_container_iterator(struct sway_container *con, void *data) {
|
|||
}
|
||||
|
||||
struct cmd_results *cmd_kill(int argc, char **argv) {
|
||||
if (!root->outputs->length) {
|
||||
return cmd_results_new(CMD_INVALID, "kill",
|
||||
"Can't run this command while there's no outputs connected.");
|
||||
}
|
||||
struct sway_container *con = config->handler_context.container;
|
||||
struct sway_workspace *ws = config->handler_context.workspace;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue