I see what your meaning now, thanks for making it clear. I haven't used Arcan in a while, but from what I remember from my (admittedly little) use and architecture reading, it might be in the best spot to get what you want. Lua bindings are pervasive and
should in theory get close to what you want, but more research and work is needed to realise that.
But yes, I really feel bad that after 16(!) years, wayland is still a shitshow in all the cases of not drawing windows on the display, and I say this as someone who has been using Wayland daily for half a decade now, and lived through things being even shittier. I just silently keep wishing Arcan gets there as a universal drop-in replacement.