mirror of
https://github.com/swaywm/sway.git
synced 2024-12-01 10:56:36 +00:00
Merge pull request #1441 from ptMuta/master
Removed trailing comma from swaybar click event json
This commit is contained in:
parent
b333fdff61
commit
59222bc3a7
|
@ -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, "x", json_object_new_int(x));
|
||||||
json_object_object_add(event_json, "y", json_object_new_int(y));
|
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);
|
json_object_put(event_json);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue