river: fix various fullscreen related bugs

This commit is contained in:
Isaac Freund
2023-02-28 22:56:12 +01:00
parent e11d4dc0de
commit 8cb5ca9041
5 changed files with 118 additions and 94 deletions

View File

@ -33,6 +33,9 @@ pub fn toggleFullscreen(
const view = seat.focused.view;
view.pending.fullscreen = !view.pending.fullscreen;
// It is possible to end up with multiple fullscreen views in which
// case making one non-fullscreen should switch focus to the next.
seat.focus(null);
server.root.applyPending();
}
}