Fix awesomebar bug, this time it's not my fault, but it took a lot of

effort to find. speedwm no longer crashes when the empty bar is
 clicked.
This commit is contained in:
speediegq 2022-08-22 21:56:56 +02:00
parent f2cfcb8213
commit 9a2bbbd9f0

View file

@ -3841,14 +3841,11 @@ void
togglewin(const Arg *arg) togglewin(const Arg *arg)
{ {
Client *c = (Client*)arg->v; Client *c = (Client*)arg->v;
if (c == selmon->sel)
if (c == selmon->sel) { hide(c);
hidewin(NULL); else {
focus(c);
arrange(c->mon);
} else {
if (HIDDEN(c)) if (HIDDEN(c))
showwin(c); show(c);
focus(c); focus(c);
restack(selmon); restack(selmon);
} }