Hacker News new | ask | show | jobs
by tredre3 11 days ago
It's also possible on Windows (SetWindowDisplayAffinity). What you call a restriction that takes control away from the user's control is actually an important security feature and Wayland will hopefully implement it (with user control I'm sure).

It's not even hard to imagine why this is useful. Imagine you're sharing/streaming your screen and your password manager accidentally opens on the shared area.

1 comments

no, microsoft literally says in their own docs "unlike a security feature or an implementation of Digital Rights Management (DRM), there is no guarantee that using SetWindowDisplayAffinity ... will strictly protect windowed content" and only the process that owns the window can set it, so anything else running as your account can inject into Signal and just set it back to WDA_NONE without any admin permissions
it still however blocks normal capture APIs which is why recall gets a black window