sites

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

commit f7511a002f6cf99b37c89a8059ded8c38692e171
parent e4d9a64825b816222cef658702a5f0af96b1e121
Author: FRIGN <dev@frign.de>
Date:   Tue, 19 Jul 2016 10:34:04 +0200

dwm bottommargin patch: remove

I don't really see the purpose. If you re-add it, give an example
where it could be useful.

Diffstat:
Ddwm.suckless.org/patches/bottommargin.md | 13-------------
Ddwm.suckless.org/patches/dwm-bottommargin-6.0.diff | 26--------------------------
2 files changed, 0 insertions(+), 39 deletions(-)

diff --git a/dwm.suckless.org/patches/bottommargin.md b/dwm.suckless.org/patches/bottommargin.md @@ -1,13 +0,0 @@ -# bottommargin - -## Description - -Adds a variable margin at the bottom for status or notification bars - -## Download - - * [dwm-bottommargin-6.0.diff](dwm-bottommargin-6.0.diff) dwm-bottommargin-6.0.diff (07.06.2014) - -## Author - - * Julian A. diff --git a/dwm.suckless.org/patches/dwm-bottommargin-6.0.diff b/dwm.suckless.org/patches/dwm-bottommargin-6.0.diff @@ -1,26 +0,0 @@ -diff --git a/config.def.h b/config.def.h -index 77ff358..203d354 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -12,6 +12,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ - static const unsigned int snap = 32; /* snap pixel */ - static const Bool showbar = True; /* False means no bar */ - static const Bool topbar = True; /* False means bottom bar */ -+static const unsigned int bottommargin = 20; /* Margin at the bottom for another bar */ - - /* tagging */ - static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -diff --git a/dwm.c b/dwm.c -index 1d78655..cece290 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -1841,6 +1841,9 @@ updatebarpos(Monitor *m) { - m->wh = m->mh; - if(m->showbar) { - m->wh -= bh; -+ m->wh -= marginbottom; -+ if(!m->topbar) -+ m->wy += marginbottom; - m->by = m->topbar ? m->wy : m->wy + m->wh; - m->wy = m->topbar ? m->wy + bh : m->wy; - }