I had really bad touch screen glitches in my phone, and I was convinced it was a hardware issue. Well, turns out that in addition to the ROM (I run LineageOS), there is also a separate Kernel. Updating to FrancoKernel seemed to have fixed it!
This is not the first time I had a problem with software that I wasn’t even aware of: In the past, I had a phone where I had to update the radio firmware, as the new SIM card I got was constantly crashing…