fix: error changse surface scene in minimized client

will cause crash if close all client in overview, when has minimized
client before toggle overview
This commit is contained in:
DreamMaoMao 2026-05-23 14:54:55 +08:00
parent 4a9ab3dd9f
commit 373ebfac33
3 changed files with 12 additions and 8 deletions

View file

@ -1234,7 +1234,7 @@ void swallow(Client *c, Client *w) {
w->overview_scene_surface = NULL;
}
if (c->mon && c->mon->isoverview) {
if (c->mon && c->mon->isoverview && config.ov_no_resize) {
overview_backup_surface(c);
}