[hackers] [dwm] Fix x coordinate calculation in buttonpress. || Ian Remmler

From: <git_AT_suckless.org>
Date: Fri, 21 Aug 2020 16:13:31 +0200 (CEST)

commit 61bb8b2241d4db08bea4261c82e27cd9797099e7
Author: Ian Remmler <ian_AT_remmler.org>
AuthorDate: Tue Mar 3 16:23:53 2020 -0600
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Fri Aug 21 16:13:22 2020 +0200

    Fix x coordinate calculation in buttonpress.

diff --git a/dwm.c b/dwm.c
index 9fd0286..664c527 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -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;
Received on Fri Aug 21 2020 - 16:13:31 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 21 2020 - 16:24:34 CEST