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)
{
Client *c = (Client*)arg->v;
if (c == selmon->sel) {
hidewin(NULL);
focus(c);
arrange(c->mon);
} else {
if (c == selmon->sel)
hide(c);
else {
if (HIDDEN(c))
showwin(c);
show(c);
focus(c);
restack(selmon);
}