This was only ever implemented on X11, and GTK is not using it at all. Relegate it to x11-specific api.