Fix x coordinate calculation in buttonpress.

This commit is contained in:
Ian Remmler 2020-03-03 16:23:53 -06:00 committed by Hiltjo Posthuma
parent bb2e7222ba
commit 61bb8b2241

2
dwm.c
View File

@ -440,7 +440,7 @@ buttonpress(XEvent *e)
arg.ui = 1 << i;
} else if (ev->x < x + blw)
click = ClkLtSymbol;
else if (ev->x > selmon->ww - TEXTW(stext))
else if (ev->x > selmon->ww - (int)TEXTW(stext))
click = ClkStatusText;
else
click = ClkWinTitle;