comparison event.c @ 353:8a06efe5b563

new color stuff/new rendering stuff
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 25 Aug 2006 12:59:45 +0200
parents 1b45d6f14fca
children c2a65784cb71
comparison
equal deleted inserted replaced
352:5a8bdc3b37cb 353:8a06efe5b563
103 Arg a; 103 Arg a;
104 Client *c; 104 Client *c;
105 XButtonPressedEvent *ev = &e->xbutton; 105 XButtonPressedEvent *ev = &e->xbutton;
106 106
107 if(barwin == ev->window) { 107 if(barwin == ev->window) {
108 x = 0; 108 if(ev->x < modew)
109 return;
110 x = modew;
109 for(a.i = 0; a.i < ntags; a.i++) { 111 for(a.i = 0; a.i < ntags; a.i++) {
110 x += textw(tags[a.i]); 112 x += textw(tags[a.i]);
111 if(ev->x < x) { 113 if(ev->x < x) {
112 if(ev->button == Button1) 114 if(ev->button == Button1)
113 view(&a); 115 view(&a);