mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
Update workspace.c
re-added missing output check after config load
This commit is contained in:
parent
db61d581a3
commit
2123dfa15f
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
|
||||||
} else {
|
} else {
|
||||||
if (config->reading || !config->active) {
|
if (config->reading || !config->active) {
|
||||||
return cmd_results_new(CMD_DEFER, "workspace", NULL);
|
return cmd_results_new(CMD_DEFER, "workspace", NULL);
|
||||||
|
} else if (!root->outputs->length) {
|
||||||
|
return cmd_results_new(CMD_INVALID, "workspace",
|
||||||
|
"Can't run this command while there's no outputs connected.");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool no_auto_back_and_forth = false;
|
bool no_auto_back_and_forth = false;
|
||||||
|
|
Loading…
Reference in a new issue