The 'doing it right' part is from how it should be done, but it still needs application support.
The thing is X11/Xorg can also theoretically do the same thing (and most likely Wayland too) but it needs, you guessed it, application (and window manager / compositor) support.