Parcourir la source

Fix x coordinate calculation in buttonpress.

Ian Remmler il y a 5 ans
Parent
commit
61bb8b2241
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      dwm.c

+ 1 - 1
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;