From: Ian Remmler Date: Tue, 3 Mar 2020 22:23:53 +0000 (-0600) Subject: Fix x coordinate calculation in buttonpress. X-Git-Url: https://git.armaanb.net/chorizo/commit/?p=dwm.git;a=commitdiff_plain;h=61bb8b2241d4db08bea4261c82e27cd9797099e7 Fix x coordinate calculation in buttonpress. --- diff --git a/dwm.c b/dwm.c index 9fd0286..664c527 100644 --- 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;