"Simply add screenshot and screen capture functionality to your favorite compositor and add a code path in your app to detect what compositor you're using at runtime and call the right methods" - Wayland developers
Better hope the compositor of the week you're using that hasn't yet been abandoned is based on wlroots so you have some chance of it working.
Better hope the compositor of the week you're using that hasn't yet been abandoned is based on wlroots so you have some chance of it working.