removed useless updatemaster 010fd21b
Anselm R. Garbe · 2006-09-29 17:25 4 file(s) · +3 −9
config.arg.h +1 −1
8 8
9 9
#define DEFMODE			dotile		/* dofloat */
10 10
#define FLOATSYMBOL		"><>"
11 -
#define STACKPOS		StackRight	/* StackLeft */
11 +
#define STACKPOS		StackRight	/* StackLeft, StackBottom */
12 12
#define TILESYMBOL		"[]="
13 13
14 14
#define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
dwm.h +0 −1
174 174
extern void togglestackpos(Arg *arg);		/* toggles stack position */
175 175
extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
176 176
extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
177 -
extern void updatemaster(void);			/* updates master dimension */
178 177
extern void view(Arg *arg);			/* views the tag with arg's index */
179 178
extern void viewall(Arg *arg);			/* views all tags, arg is ignored */
180 179
extern void zoom(Arg *arg);			/* zooms the focused client to master area, arg is ignored */
main.c +1 −1
133 133
	sx = sy = 0;
134 134
	sw = DisplayWidth(dpy, screen);
135 135
	sh = DisplayHeight(dpy, screen);
136 -
	updatemaster();
136 +
	master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100;
137 137
138 138
	bx = by = 0;
139 139
	bw = sw;
view.c +1 −6
340 340
		stackpos = STACKPOS;
341 341
	else
342 342
		stackpos = StackBottom;
343 -
	updatemaster();
343 +
	master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100;
344 344
	arrange(NULL);
345 -
}
346 -
347 -
void
348 -
updatemaster(void) {
349 -
	master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100;
350 345
}
351 346
352 347
void