|
|
@ -106,7 +106,8 @@ buttonpress(XEvent *e) |
|
|
|
|
|
|
|
|
|
|
|
if(barwin == ev->window) { |
|
|
|
if(barwin == ev->window) { |
|
|
|
if(ev->x < modew) |
|
|
|
if(ev->x < modew) |
|
|
|
return; |
|
|
|
togglemode(NULL); |
|
|
|
|
|
|
|
else { |
|
|
|
x = modew; |
|
|
|
x = modew; |
|
|
|
for(a.i = 0; a.i < ntags; a.i++) { |
|
|
|
for(a.i = 0; a.i < ntags; a.i++) { |
|
|
|
x += textw(tags[a.i]); |
|
|
|
x += textw(tags[a.i]); |
|
|
@ -119,6 +120,7 @@ buttonpress(XEvent *e) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else if((c = getclient(ev->window))) { |
|
|
|
else if((c = getclient(ev->window))) { |
|
|
|
focus(c); |
|
|
|
focus(c); |
|
|
|
if(CLEANMASK(ev->state) == 0) |
|
|
|
if(CLEANMASK(ev->state) == 0) |
|
|
|