From f3726ffbf698fbf8ca9058fb76ba0cefb00449fd Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 15 May 2018 09:27:15 -0400 Subject: [PATCH] fixed a bug in click mapping for the tags region --- lib/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x11.c b/lib/x11.c index f4ac25f..c958b5e 100644 --- a/lib/x11.c +++ b/lib/x11.c @@ -89,7 +89,7 @@ static void font_load(char* name) { static void get_position(WinRegion id, int x, int y, size_t* row, size_t* col) { int starty = (id == EDIT ? Divider+3 : 0); - int startx = (id == EDIT ? ScrollWidth+3 : 0); + int startx = ScrollWidth+3; *row = (y - starty) / X.font->height; *col = x - startx; } -- 2.49.0