The problem with Wayland in this respect is that there
is no such generic interface that works everywhere - each compositor may choose not to support it at all, or support it in different ways.
If there was a single standard way, great. In the meantime I'll stick to X11, which isn't this incredibly user-hostile.