<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Cannot use multiple finger tapping to perform middle click"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93583#c24">Comment # 24</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Cannot use multiple finger tapping to perform middle click"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93583">bug 93583</a>
              from <span class="vcard"><a class="email" href="mailto:mildred-bug.freedesktop@mildred.fr" title="Mildred Ki'Lya <mildred-bug.freedesktop@mildred.fr>"> <span class="fn">Mildred Ki'Lya</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=120985" name="attach_120985" title="libinput-debug-events --enable-tap with semi_mt=true and patch applied">attachment 120985</a> <a href="attachment.cgi?id=120985&action=edit" title="libinput-debug-events --enable-tap with semi_mt=true and patch applied">[details]</a></span>
libinput-debug-events --enable-tap with semi_mt=true and patch applied

With your patch, I successfully get the expected triple tap behaviour. Extract
from the logs:

tap state: TAP_STATE_IDLE → TAP_EVENT_TOUCH → TAP_STATE_TOUCH
tap state: TAP_STATE_TOUCH → TAP_EVENT_TOUCH → TAP_STATE_TOUCH_2
tap state: TAP_STATE_TOUCH_2 → TAP_EVENT_TOUCH → TAP_STATE_TOUCH_3
touch x/y: 959/1062
touch x/y: 959/1062
touch x/y: 959/1062

Is this patch ready to be pushed to libinput or would it break other touchpads?

udevadm info /sys/class/input/event13

P: /devices/platform/i8042/serio2/input/input74/event13
N: input/event13
S: input/by-path/platform-i8042-serio-2-event-mouse
E: DEVLINKS=/dev/input/by-path/platform-i8042-serio-2-event-mouse
E: DEVNAME=/dev/input/event13
E: DEVPATH=/devices/platform/i8042/serio2/input/input74/event13
E: ID_INPUT=1
E: ID_INPUT_HEIGHT_MM=45
E: ID_INPUT_TOUCHPAD=1
E: ID_INPUT_WIDTH_MM=94
E: ID_PATH=platform-i8042-serio-2
E: ID_PATH_TAG=platform-i8042-serio-2
E: ID_SERIAL=noserial
E: LIBINPUT_ATTR_RESOLUTION_HINT=31x31
E: LIBINPUT_DEVICE_GROUP=11/2/e/0:isa0060/serio2
E: LIBINPUT_MODEL_ELANTECH_TOUCHPAD=1
E: MAJOR=13
E: MINOR=77
E: SUBSYSTEM=input
E: USEC_INITIALIZED=93333553088</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>