about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorIan Remmler <ian@remmler.org>2020-03-03 16:23:53 -0600
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-08-21 16:13:22 +0200
commit61bb8b2241d4db08bea4261c82e27cd9797099e7 (patch)
treed4fd1e77e5ef492c1ef5658d25371c82fc72e9bc
parentbb2e7222baeec7776930354d0e9f210cc2aaad5f (diff)
downloaddwm-61bb8b2241d4db08bea4261c82e27cd9797099e7.tar.gz
Fix x coordinate calculation in buttonpress.
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
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;