fix clicks on the tray
parent
dc73c0ed70
commit
f1b651a759
3
dwm.c
3
dwm.c
|
|
@ -580,7 +580,8 @@ buttonpress(XEvent *e)
|
||||||
} else if (ev->x < x + blw)
|
} else if (ev->x < x + blw)
|
||||||
click = ClkLtSymbol;
|
click = ClkLtSymbol;
|
||||||
else if (ev->x > selmon->ww - statusw - getsystraywidth()) {
|
else if (ev->x > selmon->ww - statusw - getsystraywidth()) {
|
||||||
x = selmon->ww - statusw;
|
//else if (ev->x > selmon->ww - statusw) {
|
||||||
|
x = selmon->ww - statusw - getsystraywidth();
|
||||||
click = ClkStatusText;
|
click = ClkStatusText;
|
||||||
statussig = 0;
|
statussig = 0;
|
||||||
for (text = s = stext; *s && x <= ev->x; s++) {
|
for (text = s = stext; *s && x <= ev->x; s++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue