This api only ever did something for X11, so move it there. Update the docs and adapt the only caller.