Bug 384637 - Taking a screenshot of a program that includes a dropdown menu or any plasma popup is not possible under wayland
Summary: Taking a screenshot of a program that includes a dropdown menu or any plasma ...
Status: RESOLVED DUPLICATE of bug 414532
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 383903 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-12 21:33 UTC by Lucas
Modified: 2020-06-24 06:22 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.20
Sentry Crash Report:
mgraesslin: Wayland+
nate: X11-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas 2017-09-12 21:33:54 UTC
Taking a screenshot of a program that includes a dropdown menu or any plasma popup is not possible

How to reproduce:

1. Click on any plasma popup menu (or use a program that includes a dropdown menu)
2. Take a screenshot
3. Plasma menu disappears (closes) 

The same issue is present on xorg however there we can set up a delay in spectacle. On wayland this does not work.
Comment 1 Martin Flöser 2017-09-13 19:16:36 UTC
The problem is that the keyboard focus while taking a screenshot is taken away from the application and they react by closing popups.

I'm aware of this general problem, though I do not really have an idea for the problem.
Comment 2 francesco 2018-02-05 18:11:14 UTC
I got a similar issue on wayland:

- I set screenshot app to  "Delay" mode
- click "Take a new screenshot"
- I expect the screenshot to be created after 3 sec instead a popup in top/left corner is displayed: "new screenshot with left click or enter ..." 

This doesn't allow me to get screenshot of any application's dropdown menu

Let me know if I have to open a separate bug report.
Comment 3 Martin Flöser 2018-02-05 20:17:20 UTC
No, that's the same problem. Currently it's not possible to screenshot a context menu or dropdown and I honestly don't have an idea yet on how to do it.
Comment 4 funkybomber 2018-02-17 04:04:26 UTC
I have a very similar problem as well. 

When I press the PrintScreen button Spectacle (the default screen capture utility for KDE Neon) is not executed.

This happens when I try to take a screenshot of the menu that appears after I do a right click on a program in the Application Launcher.

I would love to have this functionality in order to be able to submit a bug report for a completely separate issue! :P

Please note however that I face this problem on X11!
Comment 5 Martin Flöser 2018-02-17 07:52:32 UTC
> Please note however that I face this problem on X11!

This a completely unrelated bug. Please do not bring up different issues into one bug report.
Comment 6 Mayeul C. 2018-09-09 20:49:45 UTC
Currently tooltips such as the ones of bug 395690 do not appear on screenshots.

> The problem is that the keyboard focus while taking a screenshot is taken away from the application and they react by closing popups.

Would it be possible to let them retain the focus (or have them think so), but filter out any event so that they receive nothing? I expect such a functionality to be useful in multiple places in kwin.

An alternative way could be to provide an interface to ask permission before taking the screenshot. Spectacle could add a button "request permission to record screen", and that would allow this capability for the duration of the program run. But I might be mistaken, and such a thing might be already possible trough portals?
Comment 7 Nate Graham 2018-11-06 21:28:55 UTC
*** Bug 383903 has been marked as a duplicate of this bug. ***
Comment 8 Patrick Silva 2019-03-10 12:25:55 UTC
I can take a screenshot including dropdown, popup (kickoff, plasma-pa, plasma-nm, for example) and context menu on neon dev unstable running Wayland session.
However, it's still impossible to take a screenshot including a tooltip.

Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.0
Comment 9 Vlad Zahorodnii 2019-03-11 08:35:04 UTC
As far as I know, panel popups are "normal" windows.
Comment 10 Méven Car 2020-06-24 06:22:28 UTC

*** This bug has been marked as a duplicate of bug 414532 ***