Extract input policy from the Wayland and X11 protocol handlers. Exercise both implementations against literal Wayland event traces.