Mercurial > aewl
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 wrap: on
line diff
--- a/event.c Fri Aug 25 07:54:49 2006 +0200 +++ b/event.c Fri Aug 25 12:59:45 2006 +0200 @@ -105,7 +105,9 @@ XButtonPressedEvent *ev = &e->xbutton; if(barwin == ev->window) { - x = 0; + if(ev->x < modew) + return; + x = modew; for(a.i = 0; a.i < ntags; a.i++) { x += textw(tags[a.i]); if(ev->x < x) {