Minor tweaks to awesomebar patch (incl. alpha and systray compatibility)

This commit is contained in:
bakkeby
2019-09-10 08:27:00 +02:00
parent 2d1d1dade4
commit d0757568ee
7 changed files with 36 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
void
hide(Client *c) {
if (!c || HIDDEN(c))
return;
@@ -46,4 +47,21 @@ togglewin(const Arg *arg)
focus(c);
restack(selmon);
}
}
void
showhideclient(const Arg *arg)
{
Client *c = (Client*)arg->v;
if (!c)
c = selmon->sel;
if (!c)
return;
if (HIDDEN(c)) {
show(c);
restack(selmon);
} else {
hide(c);
}
}