aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-05-29 21:45:18 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-05-29 21:45:18 -0400
commit64225b1137f1dccb196de404105aeb45616ea988 (patch)
tree62668d1e573c2b7a898b39abf8c8f6cacf2d4367 /sway
parentNotify of subtree change (diff)
downloadsway-64225b1137f1dccb196de404105aeb45616ea988.tar.gz
sway-64225b1137f1dccb196de404105aeb45616ea988.tar.zst
sway-64225b1137f1dccb196de404105aeb45616ea988.zip
Send IPC layout of node itself
Diffstat (limited to 'sway')
-rw-r--r--sway/ipc-json.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index d2aee9a9..03582950 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -160,12 +160,8 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
160 json_object_object_add(object, "type", json_object_new_string("con")); 160 json_object_object_add(object, "type", json_object_new_string("con"));
161 161
162 if (c->parent) { 162 if (c->parent) {
163 enum sway_container_layout layout =
164 (c->parent->type == C_CONTAINER && c->type == C_VIEW) ?
165 c->parent->layout : c->layout;
166
167 json_object_object_add(object, "layout", 163 json_object_object_add(object, "layout",
168 json_object_new_string(ipc_json_layout_description(layout))); 164 json_object_new_string(ipc_json_layout_description(c->layout)));
169 } 165 }
170} 166}
171 167