diff options
| author | Ian Remmler <ian@remmler.org> | 2020-03-03 16:23:53 -0600 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-08-21 16:13:22 +0200 |
| commit | 61bb8b2241d4db08bea4261c82e27cd9797099e7 (patch) | |
| tree | d4fd1e77e5ef492c1ef5658d25371c82fc72e9bc /dwm.c | |
| parent | dwm.1: fix wrong text in man page (diff) | |
| download | dwm-61bb8b2241d4db08bea4261c82e27cd9797099e7.tar.gz dwm-61bb8b2241d4db08bea4261c82e27cd9797099e7.zip | |
Fix x coordinate calculation in buttonpress.
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -440,7 +440,7 @@ buttonpress(XEvent *e) | |||
| 440 | arg.ui = 1 << i; | 440 | arg.ui = 1 << i; |
| 441 | } else if (ev->x < x + blw) | 441 | } else if (ev->x < x + blw) |
| 442 | click = ClkLtSymbol; | 442 | click = ClkLtSymbol; |
| 443 | else if (ev->x > selmon->ww - TEXTW(stext)) | 443 | else if (ev->x > selmon->ww - (int)TEXTW(stext)) |
| 444 | click = ClkStatusText; | 444 | click = ClkStatusText; |
| 445 | else | 445 | else |
| 446 | click = ClkWinTitle; | 446 | click = ClkWinTitle; |
