diff options
author | Ivan Molodetskikh <yalterz@gmail.com> | 2019-09-25 17:55:30 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-17 20:18:42 +0100 |
commit | fe84ec2f24db6d0677d6350719fcd500fcb9b572 (patch) | |
tree | 8ef8b53aa3b6b47d64079aef5a010ad34a78ab6d /sway/ipc-json.c | |
parent | view: add max_render_time (diff) | |
download | sway-fe84ec2f24db6d0677d6350719fcd500fcb9b572.tar.gz sway-fe84ec2f24db6d0677d6350719fcd500fcb9b572.tar.zst sway-fe84ec2f24db6d0677d6350719fcd500fcb9b572.zip |
Add max_render_time to output JSON
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 87aef47b..be961812 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -224,6 +224,8 @@ static void ipc_json_describe_output(struct sway_output *output, | |||
224 | * ((double)output->height / parent_box.height); | 224 | * ((double)output->height / parent_box.height); |
225 | json_object_object_add(object, "percent", json_object_new_double(percent)); | 225 | json_object_object_add(object, "percent", json_object_new_double(percent)); |
226 | } | 226 | } |
227 | |||
228 | json_object_object_add(object, "max_render_time", json_object_new_int(output->max_render_time)); | ||
227 | } | 229 | } |
228 | 230 | ||
229 | json_object *ipc_json_describe_disabled_output(struct sway_output *output) { | 231 | json_object *ipc_json_describe_disabled_output(struct sway_output *output) { |