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:
parent
f2cfcb8213
commit
9a2bbbd9f0
11
speedwm.c
11
speedwm.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue