opt: optimize foreign toplevel state sync

This commit is contained in:
DreamMaoMao 2026-03-30 18:11:10 +08:00
parent 254eb8a4d4
commit 52676492fe
2 changed files with 47 additions and 32 deletions

View file

@ -552,7 +552,7 @@ int32_t restore_minimized(const Arg *arg) {
if (selmon && selmon->sel && selmon->sel->is_in_scratchpad &&
selmon->sel->is_scratchpad_show) {
selmon->sel->isminimized = 0;
client_pending_minimized_state(selmon->sel, 0);
selmon->sel->is_scratchpad_show = 0;
selmon->sel->is_in_scratchpad = 0;
selmon->sel->isnamedscratchpad = 0;