Fix when only one client in a tag and click it to hide it, then click it one more time, the client will not show as expected. (#385)

This commit is contained in:
Songli Yu 2023-11-06 05:07:43 +08:00 committed by GitHub
parent 83a047aca7
commit 4a22fd046c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ togglewin(const Arg *arg)
Client *c = (Client*)arg->v; Client *c = (Client*)arg->v;
if (!c) if (!c)
return; return;
if (c == selmon->sel) if (!HIDDEN(c) && c == selmon->sel)
hide(c); hide(c);
else { else {
if (HIDDEN(c)) if (HIDDEN(c))