Created attachment 134600 [details] spectacle fials to capture screen under wayland in gnome SUMMARY Under Wayland in Gnome Spectacle fails to capture screen - picture in attachments Spectacle under xorg Gnome session works without a problem Tried under Plasma. Spectacle under both xorg and wayland in Plasma works well STEPS TO REPRODUCE 1. Login to Gnome session under wayland 2. Launch Spectacle 3. Take new screenshot OBSERVED RESULT Spectacle is unable to take a screenshot - desktop is not visible in main window, e.g. screenshot is empty. Clicking take new screenshot produces empty screenshot EXPECTED RESULT opening spectacle and clicking take new screenshot would produce image with desktop SOFTWARE/OS VERSIONS Linux: Fedora Gnome 33 Gnome Version: 3.38.2 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
I suspect that mutter will need modification. I know we had to change KWin to get Spectacle working properly on Wayland, and I don't know if the screenshot stuff is standardized into a common protocol yet.
We currently only support KWin on Wayland. There is portal interface for taking screenshots but it's rather limited but we could still add support for it https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.Screenshot.xml#L34 but you would lose almost all screenshot modes. Upstream there is an issue for creating a wayland protocol https://gitlab.freedesktop.org/wayland/wayland/-/issues/32 The gnome api seems to be https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/data/dbus-interfaces/org.gnome.Shell.Screenshot.xml
*** This bug has been marked as a duplicate of bug 404839 ***