From 7f8a47855c13989d4ec5d477132d7e4310d1345c Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 25 Sep 2019 17:55:47 +0300 Subject: [PATCH] Add max_render_time to view JSON --- sway/ipc-json.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/ipc-json.c b/sway/ipc-json.c index be961812a..b880eb65a 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -418,6 +418,8 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object struct wlr_box geometry = {0, 0, c->view->natural_width, c->view->natural_height}; json_object_object_add(object, "geometry", ipc_json_create_rect(&geometry)); + json_object_object_add(object, "max_render_time", json_object_new_int(c->view->max_render_time)); + #if HAVE_XWAYLAND if (c->view->type == SWAY_VIEW_XWAYLAND) { json_object_object_add(object, "window",