mirror of
https://github.com/swaywm/sway.git
synced 2025-02-26 11:11:21 +00:00
Delay refocus until after arranging nodes
i3 determines focus after it arranges its nodes, so the ipc events that follow have the newly updated window geometry.
This commit is contained in:
parent
ba943c694c
commit
c44ffa2be5
2 changed files with 1 additions and 2 deletions
|
@ -97,8 +97,6 @@ void container_begin_destroy(struct sway_container *con) {
|
|||
container_fullscreen_disable(con);
|
||||
}
|
||||
|
||||
wl_signal_emit(&con->node.events.destroy, &con->node);
|
||||
|
||||
container_end_mouse_operation(con);
|
||||
|
||||
con->node.destroying = true;
|
||||
|
|
|
@ -844,6 +844,7 @@ void view_unmap(struct sway_view *view) {
|
|||
seat_consider_warp_to_focus(seat);
|
||||
}
|
||||
|
||||
wl_signal_emit(&view->container->node.events.destroy, &view->container->node);
|
||||
transaction_commit_dirty();
|
||||
view->surface = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue