>> There's an off-by-one error: If the geometry indicator is not present
>> and you click (button 1) on one of the leftmost pixels of the bar, it
>> toggles the layout instead of selecting the first tag. If none of the
>> indicators are present, clicking there does nothing at all.
> The attached patch seems to fix this.
Sorry for the noise, but it is probably more correct to remove the
"ev->x > bgw" check. See attachment.
Regards,
Peter
diff -r 414f32ca9701 dwm.c
--- a/dwm.c Mon Mar 24 14:30:39 2008 +0000
+++ b/dwm.c Mon Mar 24 23:36:59 2008 +0100
@@ -330,7 +330,7 @@ buttonpress(XEvent *e) {
x = bgw;
for(i = 0; i < LENGTH(tags); i++) {
x += textw(tags[i]);
- if(ev->x > bgw && ev->x < x) {
+ if(ev->x < x) {
if(ev->button == Button1) {
if(ev->state & MODKEY)
tag(tags[i]);