chiark / gitweb /
Button zones: Refactor, preparatory to BottomEdgeZones
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Apr 2016 18:51:48 +0000 (19:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Apr 2016 19:42:32 +0000 (20:42 +0100)
commit7a57045f656241ca22c86efe7e757064582faca3
tree3f580a78b0e7babada9fc2db8d66d12825bea357
parent88e8d8d49cc5e462b8b385a20c0a46d9a34145f1
Button zones: Refactor, preparatory to BottomEdgeZones

I intend to add a new feature BottomEdgeZones which reuses the Zone
machinery, but is going to use a different source for the effective X
coordinate which selects the zone.

Break out the computation of `pos'.  pos==-1 means the zone feature is
not in use or not applicable to the event.

No functional change in this commit.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/gestures.c