comparison main.c @ 505:2c29d74b11dc

first step to a more flexible dotile() algorithm
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 29 Sep 2006 12:38:27 +0200
parents be4f90c03582
children ede48935f2b3
comparison
equal deleted inserted replaced
504:0cefc169ff67 505:2c29d74b11dc
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, mw, screen, sx, sy, sw, sh; 22 int bx, by, bw, bh, bmw, master, screen, sx, sy, sw, sh;
23 unsigned int ntags, numlockmask; 23 unsigned int 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;
131 131
132 bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL); 132 bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL);
133 sx = sy = 0; 133 sx = sy = 0;
134 sw = DisplayWidth(dpy, screen); 134 sw = DisplayWidth(dpy, screen);
135 sh = DisplayHeight(dpy, screen); 135 sh = DisplayHeight(dpy, screen);
136 mw = (sw * MASTERW) / 100; 136 master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100;
137 137
138 bx = by = 0; 138 bx = by = 0;
139 bw = sw; 139 bw = sw;
140 dc.h = bh = dc.font.height + 2; 140 dc.h = bh = dc.font.height + 2;
141 wa.override_redirect = 1; 141 wa.override_redirect = 1;