Add max_render_time to view JSON

This commit is contained in:
Ivan Molodetskikh 2019-09-25 17:55:47 +03:00 committed by Simon Ser
parent fe84ec2f24
commit 7f8a47855c

View File

@ -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}; 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, "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 HAVE_XWAYLAND
if (c->view->type == SWAY_VIEW_XWAYLAND) { if (c->view->type == SWAY_VIEW_XWAYLAND) {
json_object_object_add(object, "window", json_object_object_add(object, "window",