forked from mirror/dwm
applied yiyus tagbar patch
This commit is contained in:
parent
815f9c054d
commit
d15d4ba45a
1 changed files with 1 additions and 1 deletions
2
dwm.c
2
dwm.c
|
@ -331,7 +331,7 @@ buttonpress(XEvent *e) {
|
||||||
for(i = 0; i < LENGTH(buttons); i++)
|
for(i = 0; i < LENGTH(buttons); i++)
|
||||||
if(click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button
|
if(click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button
|
||||||
&& CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
|
&& CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
|
||||||
buttons[i].func(click == ClkTagBar ? &arg : &buttons[i].arg);
|
buttons[i].func(click == ClkTagBar && buttons[i].arg.i == 0 ? &arg : &buttons[i].arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue