diff options
-rw-r--r-- | sway/ipc-json.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 2cd0cb2d..5d1393bc 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -229,10 +229,6 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object | |||
229 | json_object_object_add(object, "app_id", | 229 | json_object_object_add(object, "app_id", |
230 | app_id ? json_object_new_string(app_id) : NULL); | 230 | app_id ? json_object_new_string(app_id) : NULL); |
231 | 231 | ||
232 | const char *class = view_get_class(c->view); | ||
233 | json_object_object_add(object, "class", | ||
234 | class ? json_object_new_string(class) : NULL); | ||
235 | |||
236 | json_object *marks = json_object_new_array(); | 232 | json_object *marks = json_object_new_array(); |
237 | list_t *view_marks = c->view->marks; | 233 | list_t *view_marks = c->view->marks; |
238 | for (int i = 0; i < view_marks->length; ++i) { | 234 | for (int i = 0; i < view_marks->length; ++i) { |
@@ -269,6 +265,7 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object | |||
269 | 265 | ||
270 | json_object *window_props = json_object_new_object(); | 266 | json_object *window_props = json_object_new_object(); |
271 | 267 | ||
268 | const char *class = view_get_class(c->view); | ||
272 | json_object_object_add(window_props, "class", | 269 | json_object_object_add(window_props, "class", |
273 | class ? json_object_new_string(class) : NULL); | 270 | class ? json_object_new_string(class) : NULL); |
274 | const char *instance = view_get_instance(c->view); | 271 | const char *instance = view_get_instance(c->view); |