diff options
author | 2018-10-29 19:08:41 +0100 | |
---|---|---|
committer | 2018-10-29 19:08:41 +0100 | |
commit | b90af3357030264a1a0def38f3feecb9056f3740 (patch) | |
tree | 553df97c6a378ccb5db8bf9870f0bc3b1646cd62 /swaymsg | |
parent | Merge pull request #3016 from mwenzkowski/fix-uninitialized-pointer (diff) | |
parent | swaymsg: fix get_outputs status code (diff) | |
download | sway-b90af3357030264a1a0def38f3feecb9056f3740.tar.gz sway-b90af3357030264a1a0def38f3feecb9056f3740.tar.zst sway-b90af3357030264a1a0def38f3feecb9056f3740.zip |
Merge pull request #3020 from emersion/swaymsg-return-status
swaymsg: fix get_outputs status code
Diffstat (limited to 'swaymsg')
-rw-r--r-- | swaymsg/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index 4688737c..3c984225 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c | |||
@@ -23,7 +23,7 @@ static bool success_object(json_object *result) { | |||
23 | json_object *success; | 23 | json_object *success; |
24 | 24 | ||
25 | if (!json_object_object_get_ex(result, "success", &success)) { | 25 | if (!json_object_object_get_ex(result, "success", &success)) { |
26 | return false; | 26 | return true; |
27 | } | 27 | } |
28 | 28 | ||
29 | return json_object_get_boolean(success); | 29 | return json_object_get_boolean(success); |