aboutsummaryrefslogtreecommitdiffstats
path: root/swaymsg/main.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-08-04 02:02:13 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-08-06 11:31:39 +0900
commita8a239e2f1ca6236c2b8f7cebf0cc37890e77ec0 (patch)
tree31206baa6238542c53d6c6b51e08d572caea8fed /swaymsg/main.c
parentinput/cursor: do not hide when buttons are pressed (diff)
downloadsway-a8a239e2f1ca6236c2b8f7cebf0cc37890e77ec0.tar.gz
sway-a8a239e2f1ca6236c2b8f7cebf0cc37890e77ec0.tar.zst
sway-a8a239e2f1ca6236c2b8f7cebf0cc37890e77ec0.zip
swaymsg: return 2 for sway errors
This mirrors a change in i3 4.17 that returns 2 for errors from sway, including invalid command, command failed, and invalid subscription requests
Diffstat (limited to 'swaymsg/main.c')
-rw-r--r--swaymsg/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index f288d4a0..a018a68e 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -475,7 +475,7 @@ int main(int argc, char **argv) {
475 ret = 1; 475 ret = 1;
476 } else { 476 } else {
477 if (!success(obj, true)) { 477 if (!success(obj, true)) {
478 ret = 1; 478 ret = 2;
479 } 479 }
480 if (!quiet && (type != IPC_SUBSCRIBE || ret != 0)) { 480 if (!quiet && (type != IPC_SUBSCRIBE || ret != 0)) {
481 if (raw) { 481 if (raw) {