forked from mirror/dwm
Fix x coordinate calculation in buttonpress.
This commit is contained in:
parent
bb2e7222ba
commit
61bb8b2241
1 changed files with 1 additions and 1 deletions
2
dwm.c
2
dwm.c
|
@ -440,7 +440,7 @@ buttonpress(XEvent *e)
|
||||||
arg.ui = 1 << i;
|
arg.ui = 1 << i;
|
||||||
} else if (ev->x < x + blw)
|
} else if (ev->x < x + blw)
|
||||||
click = ClkLtSymbol;
|
click = ClkLtSymbol;
|
||||||
else if (ev->x > selmon->ww - TEXTW(stext))
|
else if (ev->x > selmon->ww - (int)TEXTW(stext))
|
||||||
click = ClkStatusText;
|
click = ClkStatusText;
|
||||||
else
|
else
|
||||||
click = ClkWinTitle;
|
click = ClkWinTitle;
|
||||||
|
|
Loading…
Reference in a new issue