diff options
author | Drew DeVault <[email protected]> | 2017-01-18 20:50:30 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2017-01-18 20:50:30 -0500 |
commit | fa19960d1e700c9999117c9bd4b1ad0fbc16a028 (patch) | |
tree | 99225cbb7e76e869ba96ce87bbf28ca47f299fa2 /sway/ipc-json.c | |
parent | dd41ce45f7eb26ad84e9b3fe7a83f200f6396711 (diff) | |
parent | d443bce6fe78fc21560afe2d194f8bbd7593820d (diff) |
Merge pull request #1052 from Hummer12007/instance
Add window instance support
Diffstat (limited to 'sway/ipc-json.c')
-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 876fc87c..6bd5204c 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -188,6 +188,8 @@ static void ipc_json_describe_view(swayc_t *c, json_object *object) { json_object_object_add(object, "window", json_object_new_int(c->handle)); // for the sake of i3 compat json_object_object_add(props, "class", c->class ? json_object_new_string(c->class) : c->app_id ? json_object_new_string(c->app_id) : NULL); + json_object_object_add(props, "instance", c->instance ? json_object_new_string(c->instance) : + c->app_id ? json_object_new_string(c->app_id) : NULL); json_object_object_add(props, "title", (c->name) ? json_object_new_string(c->name) : NULL); json_object_object_add(props, "transient_for", parent ? json_object_new_int(parent) : NULL); json_object_object_add(object, "window_properties", props); |