some more refactoring 5d9146ff
Anselm R. Garbe · 2007-02-19 13:17 2 file(s) · +5 −5
main.c +1 −3
19 19
20 20
char stext[256];
21 21
int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah;
22 -
unsigned int master, nmaster, ntags, numlockmask;
22 +
unsigned int ntags, numlockmask;
23 23
Atom wmatom[WMLast], netatom[NetLast];
24 24
Bool running = True;
25 25
Bool *seltag;
133 133
	sx = sy = 0;
134 134
	sw = DisplayWidth(dpy, screen);
135 135
	sh = DisplayHeight(dpy, screen);
136 -
	master = MASTER;
137 -
	nmaster = NMASTER;
138 136
	bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL);
139 137
	/* bar */
140 138
	dc.h = bh = dc.font.height + 2;
tile.c +4 −2
3 3
 */
4 4
#include "dwm.h"
5 5
6 +
unsigned int master = MASTER;
7 +
unsigned int nmaster = NMASTER;
8 +
6 9
/* static */
7 10
8 11
static void
9 12
togglemax(Client *c) {
10 13
	XEvent ev;
11 -
		
14 +
12 15
	if(c->isfixed)
13 16
		return;
14 -
15 17
	if((c->ismax = !c->ismax)) {
16 18
		c->rx = c->x;
17 19
		c->ry = c->y;