diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2017-03-13 20:57:24 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2017-03-13 20:57:24 +0100 |
commit | 46ab24eb1e935b36178871bceaba3d2bca57e0da (patch) | |
tree | 6178ff2ebaa05f143745762faf0edeb9db58fe2b | |
parent | c66ed4dc6d861ec372271d13407bc4fe57861c1f (diff) |
Autohide tabbed
-rw-r--r-- | tabbed/tabbed.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tabbed/tabbed.c b/tabbed/tabbed.c index b4d47d1..73d5f23 100644 --- a/tabbed/tabbed.c +++ b/tabbed/tabbed.c @@ -333,6 +333,12 @@ drawbar(void) return; } + if (nclients == 1) { + XMoveResizeWindow(dpy, clients[0]->win, 0, 0, ww, wh - 0); + return; + } else if (nclients == 2) + XMoveResizeWindow(dpy, clients[0]->win, 0, bh, ww, wh - bh); + width = ww; cc = ww / tabwidth; if (nclients > cc) |