aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorLibravatar Ivan Molodetskikh <yalterz@gmail.com>2019-09-25 17:55:30 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2019-11-17 20:18:42 +0100
commitfe84ec2f24db6d0677d6350719fcd500fcb9b572 (patch)
tree8ef8b53aa3b6b47d64079aef5a010ad34a78ab6d /sway/ipc-json.c
parentview: add max_render_time (diff)
downloadsway-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.c2
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
229json_object *ipc_json_describe_disabled_output(struct sway_output *output) { 231json_object *ipc_json_describe_disabled_output(struct sway_output *output) {