diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 18:37:41 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-11 18:37:41 +0200 |
| commit | d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4 (patch) | |
| tree | 7e7f0f998a77610178e91d57c175526332098abd /main.c | |
| parent | after some days of experimenting with grey background, I finally give up and ... (diff) | |
| download | dwm-d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4.tar.gz dwm-d7413ffd2d9a84fc3140b28b26f8cb6bb80164e4.zip | |
implement multi-tag selection through button3 click on the specific tag
Diffstat (limited to '')
| -rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -83,7 +83,7 @@ xerrorstart(Display *dsply, XErrorEvent *ee) | |||
| 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]; |
| @@ -213,6 +213,8 @@ main(int argc, char *argv[]) | |||
| 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); |
