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
13
speedwm.c
13
speedwm.c
|
@ -3840,15 +3840,12 @@ showhide(Client *c)
|
|||
void
|
||||
togglewin(const Arg *arg)
|
||||
{
|
||||
Client *c = (Client *)arg->v;
|
||||
|
||||
if (c == selmon->sel) {
|
||||
hidewin(NULL);
|
||||
focus(c);
|
||||
arrange(c->mon);
|
||||
} else {
|
||||
Client *c = (Client*)arg->v;
|
||||
if (c == selmon->sel)
|
||||
hide(c);
|
||||
else {
|
||||
if (HIDDEN(c))
|
||||
showwin(c);
|
||||
show(c);
|
||||
focus(c);
|
||||
restack(selmon);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue