fix: scratchpad window can't enable when toggle by change tag

This commit is contained in:
DreamMaoMao 2025-06-15 21:51:29 +08:00
parent 5f688d6e6c
commit 6b2ef05dcf

View file

@ -1617,6 +1617,7 @@ void swallow(Client *c, Client *w) {
bool switch_scratchpad_client_state(Client *c) { bool switch_scratchpad_client_state(Client *c) {
if (c->is_in_scratchpad && c->is_scratchpad_show && if (c->is_in_scratchpad && c->is_scratchpad_show &&
(selmon->tagset[selmon->seltags] & c->tags) == 0) { (selmon->tagset[selmon->seltags] & c->tags) == 0) {
c->is_clip_to_hide = false;
unsigned int target = unsigned int target =
get_tags_first_tag(selmon->tagset[selmon->seltags]); get_tags_first_tag(selmon->tagset[selmon->seltags]);
tag_client(&(Arg){.ui = target}, c); tag_client(&(Arg){.ui = target}, c);