sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 719073a8e406740c7b3b5ef52358d8ac929dbd18
parent 4ae5014704ce831050dc2b8e960a0f388560d56c
Author: Alexis Ben Miloud--Josselin <alexis.bmj@protonmail.com>
Date:   Sat,  8 Jul 2017 11:16:07 +0200

[tabbed] update autohide patch

Diffstat:
Mtools.suckless.org/tabbed/patches/autohide.md | 2++
Atools.suckless.org/tabbed/patches/tabbed-autohide-20170708-6dc3978.diff | 18++++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git 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 - <alexis.bmj@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 @@ -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)