From 46ab24eb1e935b36178871bceaba3d2bca57e0da Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 13 Mar 2017 20:57:24 +0100 Subject: Autohide tabbed --- tabbed/tabbed.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tabbed/tabbed.c') 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) -- cgit v1.2.3