While looking into #197407, I noticed that <X11/extensions/XInput2.h> depends on <X11/extensions/Xge.h> which is found in libXext and thus needs to be propagated.