<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - T440s: middle and right clickpad buttons don't work if USB trackpoint is connected at boot"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89935#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - T440s: middle and right clickpad buttons don't work if USB trackpoint is connected at boot"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89935">bug 89935</a>
              from <span class="vcard"><a class="email" href="mailto:jwrdegoede@fedoraproject.org" title="Hans de Goede <jwrdegoede@fedoraproject.org>"> <span class="fn">Hans de Goede</span></a>
</span></b>
        <pre>Hi,

I'm prety sure that the cause is the code in evdev-mt-touchpad.c which is
responsible for selecting a trackstick to redirect the top software buttons to:

        if (tp->buttons.trackpoint == NULL &&
            (added_device->tags & EVDEV_TAG_TRACKPOINT)) {
                /* Don't send any pending releases to the new trackpoint */
                tp->buttons.active_is_topbutton = false;
                tp->buttons.trackpoint = added_device;  
                libinput_device_add_event_listener(&added_device->base,
                                        &tp->sendevents.trackpoint_listener,
                                        tp_trackpoint_event, tp);
        }

Notice that currently this takes the first device which has
EVDEV_TAG_TRACKPOINT set, we should change this to instead take the first ps/2
device (or maybe even the first "TPPS2 IBM TrackPoint").

Regards,

Hans</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>