Libinput asserts in a couple of places where things shouldn't happen (or prints a bug warning). In those cases (and some others) it's useful to have an event trace of how we got there. Simple approach to this would be to store the last X evdev events in libinput and print them (in evemu format ideally) together with the bug message.
Created attachment 112322 [details] [review] incomplete/untested patch for backtracing Just so it's archived publicly too, this is an initial attempt at the backtrace. Incomplete and untested.
closing for now, reopen if there's a more acute need for it
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.