dwm-meillo

diff 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
line diff
     1.1 --- a/main.c	Fri Aug 11 18:11:39 2006 +0200
     1.2 +++ b/main.c	Fri Aug 11 18:37:41 2006 +0200
     1.3 @@ -83,7 +83,7 @@
     1.4  /* extern */
     1.5  
     1.6  char stext[1024];
     1.7 -int tsel = DEFTAG;
     1.8 +Bool *tsel;
     1.9  int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
    1.10  unsigned int ntags;
    1.11  Atom wmatom[WMLast], netatom[NetLast];
    1.12 @@ -213,6 +213,8 @@
    1.13  	initrregs();
    1.14  
    1.15  	for(ntags = 0; tags[ntags]; ntags++);
    1.16 +	tsel = emallocz(sizeof(Bool) * ntags);
    1.17 +	tsel[DEFTAG] = True;
    1.18  
    1.19  	/* style */
    1.20  	dc.bg = getcolor(BGCOLOR);