[hackers] [dwm] replaced BORDERPX with sel->border in togglemax(), in other places this is not possible.

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Wed May 30 20:50:06 2007

changeset: 912:f7b26d6efc9f
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Wed May 30 20:49:38 2007 +0200
summary: replaced BORDERPX with sel->border in togglemax(), in other places this is not possible.

diff -r 1bd50fb6b9a8 -r f7b26d6efc9f config.mk
--- a/config.mk Wed May 30 12:22:29 2007 +0200
+++ b/config.mk Wed May 30 20:49:38 2007 +0200
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 4.2
+VERSION = 4.3
 
 # Customize below to fit your system
 
diff -r 1bd50fb6b9a8 -r f7b26d6efc9f layout.c
--- a/layout.c Wed May 30 12:22:29 2007 +0200
+++ b/layout.c Wed May 30 20:49:38 2007 +0200
@@ -243,7 +243,7 @@ togglemax(const char *arg) {
                 sel->ry = sel->y;
                 sel->rw = sel->w;
                 sel->rh = sel->h;
- resize(sel, wax, way, waw - 2 * BORDERPX, wah - 2 * BORDERPX, True);
+ resize(sel, wax, way, waw - 2 * sel->border, wah - 2 * sel->border, True);
         }
         else
                 resize(sel, sel->rx, sel->ry, sel->rw, sel->rh, True);
Received on Wed May 30 2007 - 20:50:06 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:53 UTC