Skip to content

Commit

Permalink
Fix x coordinate calculation in buttonpress.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianremmler authored and hiltjo committed Aug 21, 2020
1 parent bb2e722 commit 61bb8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61bb8b2

Please sign in to comment.