Bug 505803 - Spectacle captures its own menu from within Rectangular Region mode
Summary: Spectacle captures its own menu from within Rectangular Region mode
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.4.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: regression
: 506071 506226 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-06-19 18:00 UTC by kde
Modified: 2025-07-06 13:54 UTC (History)
3 users (show)

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


Attachments
Example of a screenshot including the spectacle context menu (107.56 KB, image/png)
2025-06-19 18:00 UTC, kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2025-06-19 18:00:57 UTC
Created attachment 182399 [details]
Example of a screenshot including the spectacle context menu

SUMMARY
Starting with the update to version 6.4 spectacle now captures its own context menu when creating a screenshot via the 'New Screenshot' toolbar entry.

STEPS TO REPRODUCE
1. Open the spectacle window
2. Click on 'New Screenshot' in the toolbar
3. Select an option from the context menu

OBSERVED RESULT
The created screenshot includes the above context menu. 

EXPECTED RESULT
The context menu should be hidden.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42 KDE Spin
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version:  6.9.1

Wayland / Proprietary Nvidia driver / Mobile RTX 3060

ADDITIONAL INFORMATION
The context menu is correctly hidden when:
 - System Settings -> Appearance & Style -> Animations -> 'Fading popups' is disabled
 - System Settings -> Appearance & Style -> Animations ->  'Global animation speed' is set to instant
 - A delay is configured in spectacle.

Therefore it appears to be a timing related issue.
Comment 1 Nate Graham 2025-06-19 21:05:02 UTC

*** This bug has been marked as a duplicate of bug 376865 ***
Comment 2 Nate Graham 2025-06-24 13:09:15 UTC
*** Bug 506071 has been marked as a duplicate of this bug. ***
Comment 3 Ismael Asensio 2025-06-24 15:05:10 UTC
Git commit 99f6418e3c2e044eb1f4e8bedcdccac55f1a01d4 by Ismael Asensio.
Committed on 24/06/2025 at 14:50.
Pushed by iasensio into branch 'master'.

plugins/fadingpopups: Blacklist spectacle popup menus from fading effect

Spectacle can trigger a screenshot from a popup menu. This menu needs
to get hidden immediately with no effects, to avoid appearing on the
screenshot.
FIXED-IN: 6.4.2

M  +4    -1    src/plugins/fadingpopups/package/contents/code/main.js

https://invent.kde.org/plasma/kwin/-/commit/99f6418e3c2e044eb1f4e8bedcdccac55f1a01d4
Comment 4 Ismael Asensio 2025-06-24 15:29:29 UTC
Git commit 3ac297b99540eae81568edca1e550ca7d1d6c01f by Ismael Asensio.
Committed on 24/06/2025 at 15:08.
Pushed by iasensio into branch 'Plasma/6.4'.

plugins/fadingpopups: Blacklist spectacle popup menus from fading effect

Spectacle can trigger a screenshot from a popup menu. This menu needs
to get hidden immediately with no effects, to avoid appearing on the
screenshot.
FIXED-IN: 6.4.2


(cherry picked from commit 99f6418e3c2e044eb1f4e8bedcdccac55f1a01d4)

Co-authored-by: Ismael Asensio <isma.af@gmail.com>

M  +4    -1    src/plugins/fadingpopups/package/contents/code/main.js

https://invent.kde.org/plasma/kwin/-/commit/3ac297b99540eae81568edca1e550ca7d1d6c01f
Comment 5 Ismael Asensio 2025-06-27 19:43:06 UTC
*** Bug 506226 has been marked as a duplicate of this bug. ***