sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 4a3b705a12ad791ff93392716febd11e46ecffd5
parent c26beebd88534e5a536d197727850612eccc95e0
Author: emersion <contact@emersion.fr>
Date:   Thu,  6 Sep 2018 14:59:01 +0200

Merge pull request #2592 from RyanDwyer/fix-fullscreen-unmap-focus

Second attempt at restoring focus when closing a fullscreen view
Diffstat:
Msway/tree/container.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -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);