tabbed-0.5-autohide.diff - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
tabbed-0.5-autohide.diff (471B)
---
1 diff -up ./tabbed.c ../tabbed-0.5/tabbed.c
2 --- ./tabbed.c 2013-06-24 14:34:47.208245039 +0200
3 +++ ../tabbed-0.5/tabbed.c 2013-06-24 14:36:58.423921877 +0200
4 @@ -311,6 +311,12 @@ drawbar(void) {
5 return;
6 }
7
8 + if (nclients == 1) {
9 + XMoveResizeWindow(dpy, clients[0]->win, 0, 0, ww, wh - 0);
10 + return;
11 + } else if (nclients == 2)
12 + XMoveResizeWindow(dpy, clients[1]->win, 0, bh, ww, wh - bh);
13 +
14 width = ww;
15 clients[nclients-1]->tabx = -1;
16 fc = getfirsttab();