aewl

diff event.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 7a11e4312b17
children d659a2dce2b5
line diff
     1.1 --- a/event.c	Fri Aug 11 18:11:39 2006 +0200
     1.2 +++ b/event.c	Fri Aug 11 18:37:41 2006 +0200
     1.3 @@ -108,7 +108,13 @@
     1.4  			for(a.i = 0; a.i < ntags; a.i++) {
     1.5  				x += textw(tags[a.i]);
     1.6  				if(ev->x < x) {
     1.7 -					view(&a);
     1.8 +					if(ev->button == Button3) {
     1.9 +						tsel[a.i] = True;
    1.10 +						arrange(NULL);
    1.11 +						drawall();
    1.12 +					}
    1.13 +					else
    1.14 +						view(&a);
    1.15  					return;
    1.16  				}
    1.17  			}