From: Ian Jackson Date: Sat, 23 Apr 2016 22:20:29 +0000 (+0100) Subject: Offsets: Use ymin value for bottom edge features X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=xf86-input-mtrack.git;a=commitdiff_plain;h=5ca76e65c96201232aeee99c380b99927aecb085 Offsets: Use ymin value for bottom edge features Signed-off-by: Ian Jackson --- 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); }