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);
}
}

View File

@@ -1,3 +1,4 @@
static void hide(Client *c);
static void show(Client *c);
static void togglewin(const Arg *arg);
static void togglewin(const Arg *arg);
static void showhideclient(const Arg *arg);

View File

@@ -29,6 +29,7 @@
* 000100000101 261 default tile layout
* 000100100101 293 centered master
* 000100000111 263 default tile layout with grid stack
* 000100000001 257 columns (col) layout
*/
void
setflexlayout(const Arg *arg)