diff options
author | Ivan Molodetskikh <yalterz@gmail.com> | 2019-09-25 17:55:47 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-17 20:18:42 +0100 |
commit | 7f8a47855c13989d4ec5d477132d7e4310d1345c (patch) | |
tree | fa6de19a08e282dff32b7365bcadcf2502d31a28 | |
parent | Add max_render_time to output JSON (diff) | |
download | sway-7f8a47855c13989d4ec5d477132d7e4310d1345c.tar.gz sway-7f8a47855c13989d4ec5d477132d7e4310d1345c.tar.zst sway-7f8a47855c13989d4ec5d477132d7e4310d1345c.zip |
Add max_render_time to view JSON
-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 be961812..b880eb65 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 | |||
418 | struct wlr_box geometry = {0, 0, c->view->natural_width, c->view->natural_height}; | 418 | struct wlr_box geometry = {0, 0, c->view->natural_width, c->view->natural_height}; |
419 | json_object_object_add(object, "geometry", ipc_json_create_rect(&geometry)); | 419 | json_object_object_add(object, "geometry", ipc_json_create_rect(&geometry)); |
420 | 420 | ||
421 | json_object_object_add(object, "max_render_time", json_object_new_int(c->view->max_render_time)); | ||
422 | |||
421 | #if HAVE_XWAYLAND | 423 | #if HAVE_XWAYLAND |
422 | if (c->view->type == SWAY_VIEW_XWAYLAND) { | 424 | if (c->view->type == SWAY_VIEW_XWAYLAND) { |
423 | json_object_object_add(object, "window", | 425 | json_object_object_add(object, "window", |