mirror of
https://github.com/swaywm/sway.git
synced 2026-04-03 07:15:39 -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
|
|
@ -88,6 +88,10 @@ static struct cmd_results *gaps_set_runtime(int argc, char **argv) {
|
|||
if (error) {
|
||||
return error;
|
||||
}
|
||||
if (!root->outputs->length) {
|
||||
return cmd_results_new(CMD_INVALID, "gaps",
|
||||
"Can't run this command while there's no outputs connected.");
|
||||
}
|
||||
|
||||
struct gaps_data data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue