2 ms·
"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 ru
by phone8675309 3y ago
"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.
- bb010g 3y agoThe actual solutions here are XDG Desktop Portals or Wayland protocols, the former of which are commonly used (<https://flatpak.github.io/xdg-desktop-portal/ https://flatpak.github.io/xdg-desktop-portal/>) and the latter of which are unstable proposals (<https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/blob/4264185db3b7e961e7f157e1cc4fd0ab75137568/unstable/wlr-screencopy-unstable-v1.xml https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/blob/...>). Wayland clients don't do compositor detection like you're describing, to my knowledge.