aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2019-09-25 17:55:30 +0300
committerSimon Ser <contact@emersion.fr>2019-11-17 20:18:42 +0100
commitfe84ec2f24db6d0677d6350719fcd500fcb9b572 (patch)
tree8ef8b53aa3b6b47d64079aef5a010ad34a78ab6d /sway
parentbd9a53f1a3e7dba247aab0a4e4268724acc12c38 (diff)
Add max_render_time to output JSON
Diffstat (limited to 'sway')
-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,
* ((double)output->height / parent_box.height);
json_object_object_add(object, "percent", json_object_new_double(percent));
}
+
+ json_object_object_add(object, "max_render_time", json_object_new_int(output->max_render_time));
}
json_object *ipc_json_describe_disabled_output(struct sway_output *output) {