SUMMARY When running Plasma Desktop under Wayland with the QPainter compositor (KWIN_COMPOSE=Q), Spectacle cannot take screenshots. STEPS TO REPRODUCE 1. Boot to the CLI with systemd.unit=multi-user.target 2. Launch Plasma Desktop with XDG_SESSION_TYPE=wayland KWIN_COMPOSE=Q dbun-run-session /usr/bin/startplasmacompositor 3. Launch Spectacle. OBSERVED RESULT Spectacle window appears with no screenshot; pressing 'Take a new screenshot' returns nothing. Trying to save results in a 'Cannot save an empty screenshot' error. EXPECTED RESULT A screenshot is taken SOFTWARE/OS VERSIONS OpenSUSE Leap 15.0 KDE Plasma Version: v5.12.2 KDE Frameworks Version: v5.45.0 Qt Version: v5.9.4 ADDITIONAL INFORMATION 1. Spectacle successfully takes screenshots when the default OpenGL compositor is used under Wayland, but since Nouveau locks up the entire system when Plasma Wayland is launched it has to be done with nouveau.noaccel=1, and LLVMPIPE is completely unusable for daily computing due to how painfully slow it is. 2. When launching Spectacle from the command line under the QPainter compositor and trying to take a screenshot, the following warnings are shown: - QPixmap::scaled: Pixmap is a null pixmap - Unexpected wl_surface.enter received for output with id: 11 screen name: "HDMI-A-1-LEN T23i-10/V300NG74" screen model: "" HDMI-A-1-LEN T23i-10/V300NG74 is the identity Plasma has for my monitor.
This is an issue with KWin's screenshot plugin, not Spectacle.
What kind of screenshot are you taking (fullscreen, window under cursor, etc)?
ScreenshotEffect doesn't support QPainter: bool ScreenShotEffect::supported() { return effects->compositingType() == XRenderCompositing || (effects->isOpenGLCompositing() && GLRenderTarget::supported()); }
> ScreenshotEffect doesn't support QPainter: Heh, I completely forgot about that.