From ca3a0833cd4ab4eda1145109b6ef2bb978291ea3 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 15 May 2025 07:25:16 +0800 Subject: [PATCH] fix: miss set is_clip_to_hide to false in show scratch --- src/maomao.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index c4bb360..2218e65 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -1413,6 +1413,7 @@ void show_scratchpad(Client *c) { resize(c, c->geom, 0); } c->oldtags = selmon->tagset[selmon->seltags]; + c->is_clip_to_hide = false; show_hide_client(c); setborder_color(c); } @@ -1600,9 +1601,10 @@ void toggle_named_scratch(const Arg *arg) { target_client->scratch_geom.width = arg->ui; target_client->scratch_geom.height = arg->ui2; - if (!target_client->is_in_scratchpad) + if (!target_client->is_in_scratchpad) { set_minized(target_client); - else + switch_scratch_client_state(target_client); + } else switch_scratch_client_state(target_client); }