[hackers] [dwm][PATCH] fix status bar width in buttonpress

From: ornx <ornx_AT_protonmail.com>
Date: Thu, 27 Jun 2019 17:47:47 +0000

---
dwm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dwm.c b/dwm.c
index 4465af1..60c2a24 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -439,7 +439,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 - TEXTW(stext) + lrpad - 2)
click = ClkStatusText;
else
click = ClkWinTitle;
--
2.20.1
Received on Thu Jun 27 2019 - 19:47:47 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 27 2019 - 19:48:27 CEST