mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
ipc/window-event: fill "container" on close events
Also use the recursive description to include children as well Careful: send the event before deleting the parent
This commit is contained in:
parent
b2d4caf6c3
commit
61005c3bda
2 changed files with 3 additions and 6 deletions
|
|
@ -557,6 +557,8 @@ static void handle_view_destroyed(wlc_handle handle) {
|
|||
parent->fullscreen = NULL;
|
||||
}
|
||||
|
||||
ipc_event_window(parent, "close");
|
||||
|
||||
// Destroy empty workspaces
|
||||
if (parent->type == C_WORKSPACE &&
|
||||
parent->children->length == 0 &&
|
||||
|
|
@ -567,7 +569,6 @@ static void handle_view_destroyed(wlc_handle handle) {
|
|||
}
|
||||
|
||||
arrange_windows(parent, -1, -1);
|
||||
ipc_event_window(parent, "close");
|
||||
} else {
|
||||
// Is it unmanaged?
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue