mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #2592 from RyanDwyer/fix-fullscreen-unmap-focus
Second attempt at restoring focus when closing a fullscreen view
This commit is contained in:
commit
4a3b705a12
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,11 @@ void container_begin_destroy(struct sway_container *con) {
|
|||
if (con->view) {
|
||||
ipc_event_window(con, "close");
|
||||
}
|
||||
// The workspace must have the fullscreen pointer cleared so that the
|
||||
// seat code can find an appropriate new focus.
|
||||
if (con->is_fullscreen && con->workspace) {
|
||||
con->workspace->fullscreen = NULL;
|
||||
}
|
||||
wl_signal_emit(&con->node.events.destroy, &con->node);
|
||||
|
||||
container_end_mouse_operation(con);
|
||||
|
|
Loading…
Reference in a new issue