fix: miss set is_clip_to_hide to false in show scratch

This commit is contained in:
DreamMaoMao 2025-05-15 07:25:16 +08:00
parent 2dbf3cfe92
commit ca3a0833cd

View file

@ -1413,6 +1413,7 @@ void show_scratchpad(Client *c) {
resize(c, c->geom, 0); resize(c, c->geom, 0);
} }
c->oldtags = selmon->tagset[selmon->seltags]; c->oldtags = selmon->tagset[selmon->seltags];
c->is_clip_to_hide = false;
show_hide_client(c); show_hide_client(c);
setborder_color(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.width = arg->ui;
target_client->scratch_geom.height = arg->ui2; target_client->scratch_geom.height = arg->ui2;
if (!target_client->is_in_scratchpad) if (!target_client->is_in_scratchpad) {
set_minized(target_client); set_minized(target_client);
else switch_scratch_client_state(target_client);
} else
switch_scratch_client_state(target_client); switch_scratch_client_state(target_client);
} }