trenamed MASTER into MWFACT, master into mwfact, and incmaster into addtomwfact… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f6e41b0bc3a00a2c48a996e2da4ad84be9a719f7 | |
parent 2c6087e3d20b506e63d12c9f4e638ecd024e859c | |
Author: Anselm R. Garbe <[email protected]> | |
Date: Sun, 12 Aug 2007 12:46:08 +0200 | |
renamed MASTER into MWFACT, master into mwfact, and incmaster into addtomwfact | |
Diffstat: | |
M config.arg.h | 6 +++--- | |
M config.default.h | 6 +++--- | |
M config.mk | 4 ++-- | |
M tile.c | 13 ++++++------- | |
M tile.h | 2 +- | |
5 files changed, 15 insertions(+), 16 deletions(-) | |
--- | |
diff --git a/config.arg.h b/config.arg.h | |
t@@ -32,7 +32,7 @@ static Layout layout[] = { \ | |
{ "[]=", tile }, /* first entry is default */ \ | |
{ "><>", floating }, \ | |
}; | |
-#define MASTER 0.6 /* 0.1 .. 0.9 */ | |
+#define MWFACT 0.6 /* master width factor [0.1 .… | |
#define SNAP 32 /* snap pixel */ | |
/* key definitions */ | |
t@@ -49,8 +49,8 @@ static Key key[] = { \ | |
{ MODKEY, XK_b, togglebar, … | |
{ MODKEY, XK_j, focusclient, … | |
{ MODKEY, XK_k, focusclient, … | |
- { MODKEY, XK_h, incmaster, … | |
- { MODKEY, XK_l, incmaster, … | |
+ { MODKEY, XK_h, addtomwfact, … | |
+ { MODKEY, XK_l, addtomwfact, … | |
{ MODKEY, XK_m, togglemax, … | |
{ MODKEY, XK_Return, zoom, … | |
{ MODKEY|ShiftMask, XK_space, togglefloating, … | |
diff --git a/config.default.h b/config.default.h | |
t@@ -33,7 +33,7 @@ static Layout layout[] = { \ | |
{ "[]=", tile }, /* first entry is default */ \ | |
{ "><>", floating }, \ | |
}; | |
-#define MASTER 0.6 /* 0.1 .. 0.9 */ | |
+#define MWFACT 0.6 /* master width factor [0.1 .… | |
#define SNAP 32 /* snap pixel */ | |
/* key definitions */ | |
t@@ -47,8 +47,8 @@ static Key key[] = { \ | |
{ MODKEY, XK_b, togglebar, … | |
{ MODKEY, XK_j, focusclient, … | |
{ MODKEY, XK_k, focusclient, … | |
- { MODKEY, XK_h, incmaster, … | |
- { MODKEY, XK_l, incmaster, … | |
+ { MODKEY, XK_h, addtomwfact, … | |
+ { MODKEY, XK_l, addtomwfact, … | |
{ MODKEY, XK_m, togglemax, … | |
{ MODKEY, XK_Return, zoom, … | |
{ MODKEY|ShiftMask, XK_space, togglefloating, … | |
diff --git a/config.mk b/config.mk | |
t@@ -20,8 +20,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 | |
# flags | |
CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" | |
LDFLAGS = -s ${LIBS} | |
-#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" | |
-#LDFLAGS = -g ${LIBS} | |
+CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" | |
+LDFLAGS = -g ${LIBS} | |
# Solaris | |
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" | |
diff --git a/tile.c b/tile.c | |
t@@ -4,23 +4,22 @@ | |
/* static */ | |
-static double master = MASTER; | |
+static double mwfact = MWFACT; | |
/* extern */ | |
void | |
-incmaster(const char *arg) { | |
+addtomwfact(const char *arg) { | |
double delta; | |
if(lt->arrange != tile) | |
return; | |
- /* arg handling, manipulate master */ | |
+ /* arg handling, manipulate mwfact */ | |
if(arg && (1 == sscanf(arg, "%lf", &delta))) { | |
- if(delta + master > 0.1 && delta + master < 0.9) | |
- master += delta; | |
+ if(delta + mwfact > 0.1 && delta + mwfact < 0.9) | |
+ mwfact += delta; | |
} | |
- | |
lt->arrange(); | |
} | |
t@@ -33,7 +32,7 @@ tile(void) { | |
n++; | |
/* window geoms */ | |
- mw = (n == 1) ? waw : master * waw; | |
+ mw = (n == 1) ? waw : mwfact * waw; | |
th = (n > 1) ? wah / (n - 1) : 0; | |
if(n > 1 && th < bh) | |
th = wah; | |
diff --git a/tile.h b/tile.h | |
t@@ -1,6 +1,6 @@ | |
/* See LICENSE file for copyright and license details. */ | |
/* tile.c */ | |
-void incmaster(const char *arg); /* inc/decreases the master width */ | |
+void addtomwfact(const char *arg); /* adds arg value [0.1 .. 0.9] to ma… | |
void tile(void); /* arranges all windows tiled */ | |
void zoom(const char *arg); /* zooms the focused client to mast… |