Browse Source

Fix x coordinate calculation in buttonpress.

Ian Remmler 5 năm trước cách đây
mục cha
commit
61bb8b2241
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;