]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed a bug in click mapping for the tags region
authorMichael D. Lowis <mike.lowis@gentex.com>
Tue, 15 May 2018 13:27:15 +0000 (09:27 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Tue, 15 May 2018 13:27:15 +0000 (09:27 -0400)
lib/x11.c

index f4ac25f6361705f0e5dc53598a60715fe5f2436d..c958b5e47c07f71551e9753c908c6a443c5d28b2 100644 (file)
--- 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;
 }