mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Unite describe_view and describe_window
This commit is contained in:
parent
e5c7b019ff
commit
f52daa26c9
2 changed files with 56 additions and 88 deletions
|
|
@ -566,7 +566,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_window(window));
|
||||
json_object_object_add(obj, "container", ipc_json_describe_container(window));
|
||||
}
|
||||
|
||||
const char *json_string = json_object_to_json_string(obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue