comparison 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
comparison
equal deleted inserted replaced
260:243bf6783c7c 261:d6fd632d861c
106 default: 106 default:
107 x = 0; 107 x = 0;
108 for(a.i = 0; a.i < ntags; a.i++) { 108 for(a.i = 0; a.i < ntags; a.i++) {
109 x += textw(tags[a.i]); 109 x += textw(tags[a.i]);
110 if(ev->x < x) { 110 if(ev->x < x) {
111 view(&a); 111 if(ev->button == Button3) {
112 tsel[a.i] = True;
113 arrange(NULL);
114 drawall();
115 }
116 else
117 view(&a);
112 return; 118 return;
113 } 119 }
114 } 120 }
115 if(ev->button == Button1) 121 if(ev->button == Button1)
116 viewprev(&a); 122 viewprev(&a);