More progress on window events

This commit is contained in:
Mykyta Holubakha 2016-07-19 23:28:06 +03:00
parent 976e48d79f
commit 2029fef6b8
3 changed files with 90 additions and 5 deletions

View file

@ -564,7 +564,7 @@ void ipc_event_window(swayc_t *window, const char *change) {
if (strcmp(change, "close") == 0 || !window) {
json_object_object_add(obj, "container", NULL);
} else {
json_object_object_add(obj, "container", ipc_json_describe_container(window));
json_object_object_add(obj, "container", ipc_json_describe_window(window));
}
const char *json_string = json_object_to_json_string(obj);