diff options
author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-12-01 14:33:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-01 14:33:36 -0500 |
commit | 7702943e58286818425287e9d4be3284adbcbd3e (patch) | |
tree | b288d78fb0815d2267c24cf6e8f0d699692fa85e /sway/commands/fullscreen.c | |
parent | d5678a147fb98116c40659823e2fb677bf3167ce (diff) | |
parent | 68668c22e587c7f2210e2d073da8ee836980f27b (diff) |
Merge pull request #3229 from mwenzkowski/fix-fullscreen-cmd
Fix fullscreen command and improve documentation
Diffstat (limited to 'sway/commands/fullscreen.c')
-rw-r--r-- | sway/commands/fullscreen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/fullscreen.c b/sway/commands/fullscreen.c index ff7cbba7..b78187d9 100644 --- a/sway/commands/fullscreen.c +++ b/sway/commands/fullscreen.c @@ -13,14 +13,14 @@ struct cmd_results *cmd_fullscreen(int argc, char **argv) { return error; } if (!root->outputs->length) { - return cmd_results_new(CMD_INVALID, "fullscreen", + return cmd_results_new(CMD_FAILURE, "fullscreen", "Can't run this command while there's no outputs connected."); } struct sway_node *node = config->handler_context.node; struct sway_container *container = config->handler_context.container; struct sway_workspace *workspace = config->handler_context.workspace; if (node->type == N_WORKSPACE && workspace->tiling->length == 0) { - return cmd_results_new(CMD_INVALID, "fullscreen", + return cmd_results_new(CMD_FAILURE, "fullscreen", "Can't fullscreen an empty workspace"); } if (node->type == N_WORKSPACE) { |