diff options
| author | bakkeby <[email protected]> | 2019-09-10 08:27:00 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-09-10 10:27:22 +0200 |
| commit | d0757568ee2680e50d142a32ec7c759439431399 (patch) | |
| tree | 31fa401a42dbcc118493f8191d445d21836fe511 /patch | |
| parent | 2d1d1dade4b183324643f530188584e55d4a09e5 (diff) | |
| download | dwm-flexipatch-d0757568ee2680e50d142a32ec7c759439431399.tar.gz dwm-flexipatch-d0757568ee2680e50d142a32ec7c759439431399.zip | |
Minor tweaks to awesomebar patch (incl. alpha and systray compatibility)
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/awesomebar.c | 18 | ||||
| -rw-r--r-- | patch/awesomebar.h | 3 | ||||
| -rw-r--r-- | patch/flextile.c | 1 |
3 files changed, 21 insertions, 1 deletions
diff --git a/patch/awesomebar.c b/patch/awesomebar.c index 20a54c7..e21f4f1 100644 --- a/patch/awesomebar.c +++ b/patch/awesomebar.c @@ -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); + } }
\ No newline at end of file diff --git a/patch/awesomebar.h b/patch/awesomebar.h index 2ca3dd1..8cf46f4 100644 --- a/patch/awesomebar.h +++ b/patch/awesomebar.h @@ -1,3 +1,4 @@ static void hide(Client *c); static void show(Client *c); -static void togglewin(const Arg *arg);
\ No newline at end of file +static void togglewin(const Arg *arg); +static void showhideclient(const Arg *arg);
\ No newline at end of file diff --git a/patch/flextile.c b/patch/flextile.c index 5ff9ef1..695b312 100644 --- a/patch/flextile.c +++ b/patch/flextile.c @@ -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) |
