From e714fbcbec43fa87e1b969e5fcdc0abf298ade44 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Thu, 19 Jan 2017 03:14:59 +0200 Subject: Add window instance support --- sway/ipc-json.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway/ipc-json.c') 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); -- cgit v1.2.3