Clean up touch point tracking and unbreak debugging
touch-points
debug flag was broken since a long time (damaging the wrong areas, not submitting frames when needed, …). This fixes it and also
drops our duplicate tracking by using the touch point we already track on the cursor and deduplicating the damage tracking and moving open coded damage tracking out of the cursor's touch point handling.
This is one step towards unblocking some other changes we want to make over the year and which are blocked by some legacies we drag around.
Can be tested by adding
PHOC_DEBUG=touch-points
export PHOC_DEBUG
on a device with a touch display.
@arun-mani-j Would be great if you could have a look. If you don't want to climb down too deep into damage tracking / rendering, a look at the overall layout would still be appreciated.