mirror of
https://github.com/swaywm/sway.git
synced 2024-11-28 10:51:28 +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
|
@ -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…
Reference in a new issue