Matthias-Christian Ott wrote:
> Hi,
> as discussed on the mailing list some days ago [1], here's my patch to
> ommit borders in monocle layout.
> 
> Regards,
> Matthias-Christian
> 
> [1] http://lists.suckless.org/dwm/0812/7211.html
> 

Next time I should attach the patch.
# HG changeset patch
# User Matthias-Christian Ott <[email protected]>
# Date 1232051874 -3600
# Node ID 01133f1c44f13290b6cc0364bb1edcff33338303
# Parent  9aa8fdc1ea9b6c87d3b1055f61efeca59b078d91
ommit border in monocle layout

diff --git a/dwm.c b/dwm.c
--- a/dwm.c
+++ b/dwm.c
@@ -940,13 +940,11 @@
 
 void
 monocle(void) {
-	unsigned int n;
 	Client *c;
 
-	for(n = 0, c = nexttiled(clients); c && n < 2; c = nexttiled(c->next), n++);
 	for(c = nexttiled(clients); c; c = nexttiled(c->next)) {
-		adjustborder(c, n == 1 ? 0 : borderpx);
-		resize(c, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw, resizehints);
+		adjustborder(c, 0);
+		resize(c, wx, wy, ww, wh, resizehints);
 	}
 }
 

Reply via email to