XScreenSaver, Wayland and locking.

Welp, I got crickets in answer to my question, "How do I find the wl_surface backing an Xwayland X11 Window?" and that does not bode well for XScreenSaver ever being able to lock your screen on Wayland. The only...
https://jwz.org/b/ykrj

@jwz What would be involved in locking a screen without using Xwayland? Would claiming exclusive use of the USB keyboard and mouse be enough? Cause I think that's possible to do, assuming Xwayland doesn't already do it for itself. You'd also have to watch for new USB devices appearing. And of course it would only work on local screens, so check for that somehow. </handwave>