Bug 508168 - Screenshot region menu visible on screenshot when it is taken on x11
Summary: Screenshot region menu visible on screenshot when it is taken on x11
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.4.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: X11-only
Depends on:
Blocks:
 
Reported: 2025-08-12 18:55 UTC by Alex Attis
Modified: 2025-08-15 11:48 UTC (History)
4 users (show)

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


Attachments
Screenshot showing bug (636.17 KB, image/png)
2025-08-12 18:55 UTC, Alex Attis
Details
Screenshot showing bug (fresh user account) (1.31 MB, image/png)
2025-08-12 22:36 UTC, Alex Attis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Attis 2025-08-12 18:55:16 UTC
Created attachment 183997 [details]
Screenshot showing bug

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY


STEPS TO REPRODUCE
1. Open Spectacle
2. Click "New Screenshot"
3. Click "Full Screen"

OBSERVED RESULT
Context menu with screenshot options is visible on the resulting screenshot

EXPECTED RESULT
Context menu should NOT be visible on the resulting screenshot

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-08-12 21:52:32 UTC
Hmm, I can't reproduce this on git master, and as per Bug 505803, it was supposed to have been fixed in Plasma 6.4.2.

Does it reproduce in a new clean user account on the same system?
Comment 2 Alex Attis 2025-08-12 22:36:28 UTC
Created attachment 184003 [details]
Screenshot showing bug (fresh user account)
Comment 3 Alex Attis 2025-08-12 22:37:38 UTC
(In reply to Nate Graham from comment #1)
> Hmm, I can't reproduce this on git master, and as per Bug 505803, it was
> supposed to have been fixed in Plasma 6.4.2.
> 
> Does it reproduce in a new clean user account on the same system?

I was able to get it to reproduce in a freshly created user account.
Comment 4 Nate Graham 2025-08-13 18:18:45 UTC
Well I'm confused. We pushed a change specifically to fix this, and it fixes it for me.
Comment 5 Alex Attis 2025-08-13 18:53:10 UTC
(In reply to Nate Graham from comment #4)
> Well I'm confused. We pushed a change specifically to fix this, and it fixes
> it for me.

I am using the Xsession I should add. 
With the Wayland session on my laptop, it works perfectly.
Comment 6 Nate Graham 2025-08-14 14:45:52 UTC
Ah, on X11! That makes sense because kwin_wayland and kwin_x11 have been split, and https://invent.kde.org/plasma/kwin/-/commit/99f6418e3c2e044eb1f4e8bedcdccac55f1a01d4 wasn't backported to kwin_x11.

Any interest in doing that, Ismael?
Comment 7 Ismael Asensio 2025-08-14 14:56:37 UTC
(In reply to Nate Graham from comment #6)
> Ah, on X11! That makes sense because kwin_wayland and kwin_x11 have been
> split, and
> https://invent.kde.org/plasma/kwin/-/commit/
> 99f6418e3c2e044eb1f4e8bedcdccac55f1a01d4 wasn't backported to kwin_x11.
> 
Oh, and the popup effects belong into the kwin repo. Thanks for bringing this up.
The issue being associated with spectacle made me forget that the changes would also need backporting on the kwin_x11 repo

> Any interest in doing that, Ismael?
Yeah, will do!
Comment 8 Nate Graham 2025-08-14 15:14:42 UTC
Great, thanks so much!
Comment 9 Ismael Asensio 2025-08-14 17:03:24 UTC
Git commit e92300a148c34eee002a90cc02619ffca9b91a37 by Ismael Asensio.
Committed on 14/08/2025 at 16:06.
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.5

(cherry picked from commit 99f6418e3c2e044eb1f4e8bedcdccac55f1a01d4)

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

https://invent.kde.org/plasma/kwin-x11/-/commit/e92300a148c34eee002a90cc02619ffca9b91a37
Comment 10 Ismael Asensio 2025-08-15 11:48:26 UTC
Git commit cb7e456d7ce1c00221502c58ac20b32a76fe21fa by Ismael Asensio.
Committed on 15/08/2025 at 11:10.
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.5

(cherry picked from commit 99f6418e3c2e044eb1f4e8bedcdccac55f1a01d4)


(cherry picked from commit e92300a148c34eee002a90cc02619ffca9b91a37)

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-x11/-/commit/cb7e456d7ce1c00221502c58ac20b32a76fe21fa