implemented focusprev on button1 press in the bar, and focusnext on button3 press in the bar 8278f0a6
Anselm R.Garbe · 2006-08-11 09:16 1 file(s) · +6 −2
event.c +6 −2
103 103
104 104
	if(barwin == ev->window) {
105 105
		switch(ev->button) {
106 -
		default:
106 +
		case Button1:
107 107
			x = 0;
108 108
			for(a.i = 0; a.i < ntags; a.i++) {
109 109
				x += textw(tags[a.i]);
110 110
				if(ev->x < x) {
111 111
					view(&a);
112 -
					break;
112 +
					return;
113 113
				}
114 114
			}
115 +
			focusprev(NULL);
116 +
			break;
117 +
		case Button3:
118 +
			focusnext(NULL);
115 119
			break;
116 120
		case Button4:
117 121
			viewprev(&a);