Mercurial > aewl
comparison main.c @ 261:d6fd632d861c
implement multi-tag selection through button3 click on the specific tag
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Fri, 11 Aug 2006 18:37:41 +0200 |
parents | cd15de32e173 |
children | d659a2dce2b5 |
comparison
equal
deleted
inserted
replaced
260:243bf6783c7c | 261:d6fd632d861c |
---|---|
81 } | 81 } |
82 | 82 |
83 /* extern */ | 83 /* extern */ |
84 | 84 |
85 char stext[1024]; | 85 char stext[1024]; |
86 int tsel = DEFTAG; | 86 Bool *tsel; |
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 unsigned int ntags; |
89 Atom wmatom[WMLast], netatom[NetLast]; | 89 Atom wmatom[WMLast], netatom[NetLast]; |
90 Bool running = True; | 90 Bool running = True; |
91 Bool issel = True; | 91 Bool issel = True; |
211 | 211 |
212 grabkeys(); | 212 grabkeys(); |
213 initrregs(); | 213 initrregs(); |
214 | 214 |
215 for(ntags = 0; tags[ntags]; ntags++); | 215 for(ntags = 0; tags[ntags]; ntags++); |
216 tsel = emallocz(sizeof(Bool) * ntags); | |
217 tsel[DEFTAG] = True; | |
216 | 218 |
217 /* style */ | 219 /* style */ |
218 dc.bg = getcolor(BGCOLOR); | 220 dc.bg = getcolor(BGCOLOR); |
219 dc.fg = getcolor(FGCOLOR); | 221 dc.fg = getcolor(FGCOLOR); |
220 dc.border = getcolor(BORDERCOLOR); | 222 dc.border = getcolor(BORDERCOLOR); |