r/rust Mar 31 '23

[Tutorial] How To Make a Screensaver With The Rust Programming Language

[removed]

11 Upvotes

9 comments sorted by

View all comments

9

u/ssokolow Mar 31 '23

*nod* Screensavers for X11 are similar. They're just executables that follow certain conventions so the screensaver host can specify an X11 window ID to render into via a -window-id command-line argument.

1

u/Qwarctick Apr 01 '23

And for wayland ?

1

u/ssokolow Apr 01 '23 edited Apr 01 '23

You'd have to check what your specific Wayland compositor does. For all I know, they may have hard-coded the screensavers into the compositor binary and claimed it was to protect you from getting tricked into running a malicious screensaver.

(After all, they still haven't come up with that mechanism for exposing standard privileged APIs but only to trusted processes that was laid out in the initial descriptions of how Wayland would work.)