SUMMARY If you try to use the screenshot effect DBus API to do an interactive screenshot of a popup menu, the menu will disappear and it will not be possible to take a screenshot of it. STEPS TO REPRODUCE 1. Run Spectacle under kwin_wayland 2. Do a Window Under Cursor screenshot on a delay 3. Open a menu and wait for the interactive window picker OBSERVED RESULT The menu disappears when the window picker appears, making it impossible to pick the menu. EXPECTED RESULT It should be possible to take a screenshot of a menu by picking it in the interactive screenshot mode. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20230525 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.107.0 Qt Version: 5.15.9 Kernel Version: 6.3.2-1-default (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics Memory: 30.8 GiB of RAM Graphics Processor: AMD Radeon Graphics