Explorar o código

Fix x coordinate calculation in buttonpress.

Ian Remmler %!s(int64=5) %!d(string=hai) anos
pai
achega
61bb8b2241
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;