From 5ca76e65c96201232aeee99c380b99927aecb085 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 23 Apr 2016 23:20:29 +0100 Subject: [PATCH] Offsets: Use ymin value for bottom edge features Signed-off-by: Ian Jackson --- src/mtstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mtstate.c b/src/mtstate.c index bd9a7e3..af476ef 100644 --- a/src/mtstate.c +++ b/src/mtstate.c @@ -237,7 +237,7 @@ static void touches_update(struct MTState* ms, else CLEARBIT(ms->touch[n].state, MT_PALM); - if (ms->touch[n].y > (100 - cfg->bottom_edge)*cfg->pad_height/100) { + if ((ms->touch[n].y - get_cap_ymin(caps)) > (100 - cfg->bottom_edge)*cfg->pad_height/100) { if (GETBIT(ms->touch[n].state, MT_NEW)) SETBIT(ms->touch[n].state, MT_BOTTOM_EDGE); } -- 2.30.2