this post was submitted on 21 Sep 2024
28 points (100.0% liked)
Rust
6117 readers
3 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Maybe someone can correct me if I'm wrong, but doesn't Wayland's security model intentionally prevent this type of "tampering" with another application's display?
It doesn't by default and design, but that doesn't mean it can't be implemented through a special protocol or compositor plugin.
This also protects against windows, not processes of the same user. You can bypass the problem by simply wrapping the game and your overlay in a nested compositor like gamescope. From there you control the compositor, so you can do whatever you want.
And it's still secure because it only lets you overlay over stuff from your own Wayland clients spawned by your overlay wrapper, none of the user's other windows, so you can still trust your password manager and such.
OP here. Thanks for your reply. If what you're asking is the case, I'd be happy to find a solution that runs under X instead. This tracker would in any case mostly be for my own use. I was just excited to finally get Wayland working with my NVIDIA card with the explicit sync stuff.