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);
|
||||
}
|
||||
}
|
@@ -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);
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user