aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
authorFlakebi <flakebi@t-online.de>2019-03-16 17:20:54 +0100
committerBrian Ashworth <bosrsf04@gmail.com>2019-03-16 12:32:09 -0400
commit2578669de76c6d4b2038a648d1cfcd3c7e9e320a (patch)
tree803b0283c47aa3478d8265c6f40d6cda08cbe160 /swaymsg
parent264e213c08bf1e184f7e540ae841996292ed16bd (diff)
Flush stdout in swaymsg when in subscribe mode
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index a0ef7e3d..65cc4bbb 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -493,6 +493,7 @@ int main(int argc, char **argv) {
printf("%s\n", json_object_to_json_string_ext(obj,
JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_SPACED));
}
+ fflush(stdout);
json_object_put(obj);
}