Minor tweaks to awesomebar patch (incl. alpha and systray compatibility)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user