aboutsummaryrefslogtreecommitdiff
path: root/tabbed
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2017-03-13 20:57:24 +0100
committerSébastien Dailly <sebastien@chimrod.com>2017-03-13 20:57:24 +0100
commit46ab24eb1e935b36178871bceaba3d2bca57e0da (patch)
tree6178ff2ebaa05f143745762faf0edeb9db58fe2b /tabbed
parentc66ed4dc6d861ec372271d13407bc4fe57861c1f (diff)
Autohide tabbed
Diffstat (limited to 'tabbed')
-rw-r--r--tabbed/tabbed.c6
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)