mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
More progress on window events
This commit is contained in:
parent
976e48d79f
commit
2029fef6b8
3 changed files with 90 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue