From 59222bc3a71acf5de331a59f2c2f0e21bff1a9c7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 28 Oct 2017 10:45:39 -0400 Subject: [PATCH] Merge pull request #1441 from ptMuta/master Removed trailing comma from swaybar click event json --- swaybar/status_line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swaybar/status_line.c b/swaybar/status_line.c index cc324fdb..87e90caf 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c @@ -440,7 +440,7 @@ bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button) { json_object_object_add(event_json, "x", json_object_new_int(x)); json_object_object_add(event_json, "y", json_object_new_int(y)); - int len = snprintf(event_buff, sizeof(event_buff), "%s,\n", json_object_to_json_string(event_json)); + int len = snprintf(event_buff, sizeof(event_buff), "%s\n", json_object_to_json_string(event_json)); json_object_put(event_json);