diff options
author | Joona Romppanen <joona.romppanen@gmail.com> | 2017-10-28 17:35:48 +0300 |
---|---|---|
committer | Joona Romppanen <joona.romppanen@gmail.com> | 2017-10-28 17:35:48 +0300 |
commit | 675e4b7de75cff4af5ab21d594b627eff294255f (patch) | |
tree | 59b7861ee98144872ca27a290eb9f348d262bb90 | |
parent | Merge pull request #1436 from dlrobertson/add_asan_build (diff) | |
download | sway-675e4b7de75cff4af5ab21d594b627eff294255f.tar.gz sway-675e4b7de75cff4af5ab21d594b627eff294255f.tar.zst sway-675e4b7de75cff4af5ab21d594b627eff294255f.zip |
Removed trailing comma from swaybar click event json
-rw-r--r-- | swaybar/status_line.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
440 | json_object_object_add(event_json, "x", json_object_new_int(x)); | 440 | json_object_object_add(event_json, "x", json_object_new_int(x)); |
441 | json_object_object_add(event_json, "y", json_object_new_int(y)); | 441 | json_object_object_add(event_json, "y", json_object_new_int(y)); |
442 | 442 | ||
443 | int len = snprintf(event_buff, sizeof(event_buff), "%s,\n", json_object_to_json_string(event_json)); | 443 | int len = snprintf(event_buff, sizeof(event_buff), "%s\n", json_object_to_json_string(event_json)); |
444 | 444 | ||
445 | json_object_put(event_json); | 445 | json_object_put(event_json); |
446 | 446 | ||