dwm-meillo

diff 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
line diff
     1.1 --- a/event.c	Fri Aug 25 07:54:49 2006 +0200
     1.2 +++ b/event.c	Fri Aug 25 12:59:45 2006 +0200
     1.3 @@ -105,7 +105,9 @@
     1.4  	XButtonPressedEvent *ev = &e->xbutton;
     1.5  
     1.6  	if(barwin == ev->window) {
     1.7 -		x = 0;
     1.8 +		if(ev->x < modew)
     1.9 +			return;
    1.10 +		x = modew;
    1.11  		for(a.i = 0; a.i < ntags; a.i++) {
    1.12  			x += textw(tags[a.i]);
    1.13  			if(ev->x < x) {