From 604be656256e0bed22f3d7ab3a19951bb5157152 Mon Sep 17 00:00:00 2001 From: Taiyu Date: Mon, 10 Aug 2015 14:29:24 -0700 Subject: [PATCH 1/2] make cmd_workspace return 0 on success --- sway/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands.c b/sway/commands.c index 94d5a7ff0..5c91ab55c 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -275,7 +275,7 @@ int cmd_workspace(struct sway_config *config, int argc, char **argv) { } else sway_log(L_DEBUG, "workspace exists, all ok"); workspace_switch(workspace); - return 1; + return 0; } /* Keep alphabetized */ From f62a700bc82fb1dd775af9c574525a96e922d040 Mon Sep 17 00:00:00 2001 From: Taiyu Date: Mon, 10 Aug 2015 14:31:32 -0700 Subject: [PATCH 2/2] return 0 on success for cmd_fullscreen --- sway/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands.c b/sway/commands.c index 5c91ab55c..f1440c570 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -260,7 +260,7 @@ int cmd_fullscreen(struct sway_config *config, int argc, char **argv) { wlc_view_set_state(container->handle, WLC_BIT_FULLSCREEN, !current); arrange_windows(container, -1, -1); - return 1; + return 0; } int cmd_workspace(struct sway_config *config, int argc, char **argv) {