Fix x coordinate calculation in buttonpress. - dwm - dynamic window manager HTML git clone https://git.parazyd.org/dwm DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 61bb8b2241d4db08bea4261c82e27cd9797099e7 DIR parent bb2e7222baeec7776930354d0e9f210cc2aaad5f HTML Author: Ian Remmler <ian@remmler.org> Date: Tue, 3 Mar 2020 16:23:53 -0600 Fix x coordinate calculation in buttonpress. Diffstat: M dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/dwm.c b/dwm.c @@ -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;