diff options
author | 2017-10-28 10:45:39 -0400 | |
---|---|---|
committer | 2017-10-30 17:23:40 -0400 | |
commit | 59222bc3a71acf5de331a59f2c2f0e21bff1a9c7 (patch) | |
tree | 875e33a821e89bd76112f9b2c9887764dc50bd61 /swaybar/status_line.c | |
parent | Merge pull request #1438 from mariusor/explicit_json-c_version (diff) | |
download | sway-59222bc3a71acf5de331a59f2c2f0e21bff1a9c7.tar.gz sway-59222bc3a71acf5de331a59f2c2f0e21bff1a9c7.tar.zst sway-59222bc3a71acf5de331a59f2c2f0e21bff1a9c7.zip |
Removed trailing comma from swaybar click event json
Diffstat (limited to 'swaybar/status_line.c')
-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 | ||