summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorjoshua <joshua@joshuayun.com>2023-12-23 21:48:11 -0500
committerjoshua <joshua@joshuayun.com>2023-12-23 21:48:11 -0500
commitac40942a45fc8c425fb349b25119a607a7b150a0 (patch)
tree1661a40426b6d3b621d3b7171429b9a530aca5ee /dwm.c
parentc35fb342aab4fef5174f56d0df634990a4b74ae8 (diff)
downloaddwm-ac40942a45fc8c425fb349b25119a607a7b150a0.tar.gz
initial commits complete, need to fix where clicking a status bar makes one of the status windows go away
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 7ff8f2e..1653da8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -589,7 +589,7 @@ buttonpress(XEvent *e)
click = ClkLtSymbol;
else if (ev->x > selmon->ww - statusw - getsystraywidth()) {
click = ClkStatusText;
- x = selmon->ww - statusw;
+ x = selmon->ww - statusw - getsystraywidth();
statussig = 0;
for (text = s = stext; *s && x <= ev->x; s++) {
if ((unsigned char)(*s) < ' ') {