This commit is contained in:
anonymous0719 2026-02-03 17:59:02 -05:00 committed by GitHub
commit b5c70ac145
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -538,6 +538,12 @@ void container_begin_destroy(struct sway_container *con) {
if (con->pending.fullscreen_mode == FULLSCREEN_WORKSPACE && con->pending.workspace) {
con->pending.workspace->fullscreen = NULL;
}
// If the container was the one stored in the overview's fullscreen memory, clear it.
if (con->pending.workspace && con->pending.workspace->layout.fullscreen == con) {
con->pending.workspace->layout.fullscreen = NULL;
}
if (con->scratchpad && con->pending.fullscreen_mode == FULLSCREEN_GLOBAL) {
container_fullscreen_disable(con);
}