commit 719073a8e406740c7b3b5ef52358d8ac929dbd18
Author: Alexis Ben Miloud--Josselin <[email protected]>
Date:   Sat Jul 8 11:16:07 2017 +0200

    [tabbed] update autohide patch

diff --git a/tools.suckless.org/tabbed/patches/autohide.md 
b/tools.suckless.org/tabbed/patches/autohide.md
index 93c9ea76..34200615 100644
--- a/tools.suckless.org/tabbed/patches/autohide.md
+++ b/tools.suckless.org/tabbed/patches/autohide.md
@@ -7,9 +7,11 @@ Download
 --------
 * [tabbed-0.4.1-autohide.diff](tabbed-0.4.1-autohide.diff)
 * [tabbed-0.5-autohide.diff](tabbed-0.5-autohide.diff)
+* 
[tabbed-autohide-20170708-6dc3978.diff](tabbed-autohide-20170708-6dc3978.diff)
 
 Author
 ------
 * original author  Carlos Pita - <carlosjosepita_AT_gmail.com>
 * 0.4.1  Maximilian Dietrich - <dxm_AT_lavabit.com>
 * 0.5    Maximilian Dietrich - <dxm_AT_lavabit.com>
+* 20170708  Alexis Ben Miloud--Josselin - <[email protected]>
diff --git 
a/tools.suckless.org/tabbed/patches/tabbed-autohide-20170708-6dc3978.diff 
b/tools.suckless.org/tabbed/patches/tabbed-autohide-20170708-6dc3978.diff
new file mode 100644
index 00000000..5b6f8a1e
--- /dev/null
+++ b/tools.suckless.org/tabbed/patches/tabbed-autohide-20170708-6dc3978.diff
@@ -0,0 +1,18 @@
+diff --git a/tabbed.c b/tabbed.c
+index ff3ada0..7414797 100644
+--- a/tabbed.c
++++ b/tabbed.c
+@@ -329,6 +329,13 @@ drawbar(void)
+               return;
+       }
+ 
++      if (nclients == 1) {
++              XMoveResizeWindow(dpy, clients[0]->win, 0, 0, ww, wh - 0);
++              return;
++      } else if (nclients == 2) {
++              XMoveResizeWindow(dpy, clients[1]->win, 0, bh, ww, wh - bh);
++      }
++
+       width = ww;
+       cc = ww / tabwidth;
+       if (nclients > cc)


Reply via email to