[wiki] [sites] [tabbed] update autohide patch || Alexis Ben Miloud--Josselin

From: <git_AT_suckless.org>
Date: Sat, 08 Jul 2017 11:16:58 +0200

commit 719073a8e406740c7b3b5ef52358d8ac929dbd18
Author: Alexis Ben Miloud--Josselin <alexis.bmj_AT_protonmail.com>
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
_AT_@ -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 - <alexis.bmj_AT_protonmail.com>
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
_AT_@ -0,0 +1,18 @@
+diff --git a/tabbed.c b/tabbed.c
+index ff3ada0..7414797 100644
+--- a/tabbed.c
++++ b/tabbed.c
+_AT_@ -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)
Received on Sat Jul 08 2017 - 11:16:58 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 08 2017 - 11:24:48 CEST