mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
ipc: add pid information for views in layout tree
This commit is contained in:
parent
5912325d5c
commit
81f3fda6fa
3 changed files with 5 additions and 0 deletions
|
|
@ -221,6 +221,8 @@ static const char *describe_container_border(enum sway_container_border border)
|
|||
}
|
||||
|
||||
static void ipc_json_describe_view(struct sway_container *c, json_object *object) {
|
||||
json_object_object_add(object, "pid", json_object_new_int(c->view->pid));
|
||||
|
||||
const char *app_id = view_get_app_id(c->view);
|
||||
json_object_object_add(object, "app_id",
|
||||
app_id ? json_object_new_string(app_id) : NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue