Bug 505084 - Some KWin window present/disappear 3d effects will cause Spectacle to fail to hide its window for "Rectangular Region" screenshots
Summary: Some KWin window present/disappear 3d effects will cause Spectacle to fail to...
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 24.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-01 08:59 UTC by Ellie
Modified: 2025-06-05 20:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments
Screenshot of "General Behavior" section in KDE systemsettings with the animation speed setting (116.45 KB, image/png)
2025-06-01 09:00 UTC, Ellie
Details
Screenshot of "Spectacle" showing itself in the "Rectangular Region" capture when it shouldn't (945.23 KB, image/png)
2025-06-01 09:01 UTC, Ellie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ellie 2025-06-01 08:59:08 UTC
SUMMARY

Some KWin window present/disappear 3d effects will cause Spectacle to fail to hide its window for "Rectangular Region" screenshots. You can see this in the attached screenshot made with Spectacle's "Rectangular Region" button, where the Spectacle window remains shown even though it shouldn't be visible. There seems to be a timing issue, where Spectacle assumes the screenshot is already taken before it shows itself again, but instead it seems to be reappearing after a brief disappearance too early, managing to capture itself unintentionally in the ensuing screenshot.

STEPS TO REPRODUCE

1. Go to KDE systemsettings and open up "Desktop Effects", and enable effect "Glitch [Burn-My-Windows]"
2. In the systemsettings "General Behavior" section, set "Animation Speed" to what's shown in the attached settings screenshot
3. Then press the print key to trigger spectacle, and once it comes up, press "Rectangular Region". You should now see a capture of your screen, but Spectacle is visible on it.

OBSERVED RESULT

Spectacle captures itself when it shouldn't.

EXPECTED RESULT

Spectacle isn't seen on the "Rectangular Screenshot".

SOFTWARE/OS VERSIONS

Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: postmarketOS v24.12
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Comment 1 Ellie 2025-06-01 09:00:02 UTC
Created attachment 181949 [details]
Screenshot of "General Behavior" section in KDE systemsettings with the animation speed setting
Comment 2 Ellie 2025-06-01 09:01:59 UTC
Created attachment 181950 [details]
Screenshot of "Spectacle" showing itself in the "Rectangular Region" capture when it shouldn't
Comment 3 Nate Graham 2025-06-05 16:20:44 UTC
While trying to test this, I found that 3rd-party window effects are completely broken in the 6.4 beta right now, oops: Bug 505242.

We'll get that fixed and then re-test this.
Comment 4 Nate Graham 2025-06-05 20:10:42 UTC
Ok, that's fixed now; testing this.
Comment 5 Nate Graham 2025-06-05 20:12:34 UTC
Cannot reproduce with Plasma 6.4; as I was hoping, the changes to how Rectangular Region works in that release have fixed this already.
Comment 6 Ellie 2025-06-05 20:14:27 UTC
Awesome! :-)