Mercurial > dwm-meillo
comparison main.c @ 524:1a9a0877650c
keep master ratio on resizecol -> arrange
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Thu, 05 Oct 2006 12:59:35 +0200 |
parents | e5f8d6ac509c |
children | 451f19d48845 |
comparison
equal
deleted
inserted
replaced
523:c1dd19da63ef | 524:1a9a0877650c |
---|---|
17 | 17 |
18 /* extern */ | 18 /* extern */ |
19 | 19 |
20 char stext[1024]; | 20 char stext[1024]; |
21 Bool *seltag; | 21 Bool *seltag; |
22 int bx, by, bw, bh, bmw, master, screen, sx, sy, sw, sh; | 22 int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh; |
23 unsigned int ntags, numlockmask; | 23 unsigned int master, ntags, numlockmask; |
24 Atom wmatom[WMLast], netatom[NetLast]; | 24 Atom wmatom[WMLast], netatom[NetLast]; |
25 Bool running = True; | 25 Bool running = True; |
26 Bool issel = True; | 26 Bool issel = True; |
27 Client *clients = NULL; | 27 Client *clients = NULL; |
28 Client *sel = NULL; | 28 Client *sel = NULL; |
134 bmw = bmw > textw(FLOATSYMBOL) ? | 134 bmw = bmw > textw(FLOATSYMBOL) ? |
135 bmw : textw(FLOATSYMBOL); | 135 bmw : textw(FLOATSYMBOL); |
136 sx = sy = 0; | 136 sx = sy = 0; |
137 sw = DisplayWidth(dpy, screen); | 137 sw = DisplayWidth(dpy, screen); |
138 sh = DisplayHeight(dpy, screen); | 138 sh = DisplayHeight(dpy, screen); |
139 master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; | 139 master = MASTER; |
140 | 140 |
141 bx = by = 0; | 141 bx = by = 0; |
142 bw = sw; | 142 bw = sw; |
143 dc.h = bh = dc.font.height + 2; | 143 dc.h = bh = dc.font.height + 2; |
144 wa.override_redirect = 1; | 144 wa.override_redirect = 1; |