changeset 178 | e848966a1ac6 |
parent 164 | 21071ae1fe68 |
child 191 | 56fee1dc9d53 |
177:e890cee887d1 | 178:e848966a1ac6 |
---|---|
83 /* extern */ |
83 /* extern */ |
84 |
84 |
85 char stext[1024]; |
85 char stext[1024]; |
86 int tsel = DEFTAG; |
86 int tsel = DEFTAG; |
87 int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; |
87 int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; |
88 unsigned int ntags; |
|
88 Atom wmatom[WMLast], netatom[NetLast]; |
89 Atom wmatom[WMLast], netatom[NetLast]; |
89 Bool running = True; |
90 Bool running = True; |
90 Bool issel = True; |
91 Bool issel = True; |
91 Client *clients = NULL; |
92 Client *clients = NULL; |
92 Client *sel = NULL; |
93 Client *sel = NULL; |
207 cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr); |
208 cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr); |
208 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); |
209 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); |
209 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); |
210 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); |
210 |
211 |
211 grabkeys(); |
212 grabkeys(); |
213 |
|
214 for(ntags = 0; tags[ntags]; ntags++); |
|
212 |
215 |
213 /* style */ |
216 /* style */ |
214 dc.bg = getcolor(BGCOLOR); |
217 dc.bg = getcolor(BGCOLOR); |
215 dc.fg = getcolor(FGCOLOR); |
218 dc.fg = getcolor(FGCOLOR); |
216 dc.border = getcolor(BORDERCOLOR); |
219 dc.border = getcolor(BORDERCOLOR); |