Bug 465532 - [neon unstable] Spectactle on wayland can't be launched multiple times quickly
Summary: [neon unstable] Spectactle on wayland can't be launched multiple times quickly
Status: RESOLVED DUPLICATE of bug 463344
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: git-master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-10 07:28 UTC by Oded Arbel
Modified: 2023-02-14 17:21 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2023-02-10 07:28:43 UTC
SUMMARY
When launching Spectactle using the PrtScrn shortcut, if after the screenshot is complete (copied or saved), if we try to launch Spectactle quickly again using the PrtScrn shortcut - nothing happens.

If we wait some 10 seconds or so, we can launch Spectactle again successfully.

STEPS TO REPRODUCE
1. From your Plasma workspace, press PrtScrn.
2. With the new Spectacle overlay UI, finish the screenshot and copy or save it.
3. Immediately after the Spectactle notification for the new screenshot shows, press Press PrtScrn again.

OBSERVED RESULT
Nothing happens. If you have task manager launch notification you'd see the Spectactle launch notification entry appears and then just disappears after a few seconds.

EXPECTED RESULT
A new Spectacle screenshot overlay should appear

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Using systemctl --user status app-org.kde.spectacle.service , I can see that Spectacle remains active for several seconds after it has finished copying/saving the screenshot. If I try to summon Spectacle again while its unit is still active, I get the following lines in the logs (journalctl --user -f -u app-org.kde.spectacle.service) and otherwise nothing happens:

---8<---
Feb 10 09:21:11 vesho spectacle[1255625]: kf.service.services: query for mimeType "image/png" returning 11 offers
Feb 10 09:21:11 vesho spectacle[1255625]: kf.service.services: query for mimeType "image/png" returning 11 offers
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Feb 10 09:21:11 vesho spectacle[1255625]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
---8<---
Comment 1 Nate Graham 2023-02-12 17:25:13 UTC
Is the bug that it doesn't open *quickly*, or that it doesn't open at all?
Comment 2 Oded Arbel 2023-02-13 18:21:23 UTC
(In reply to Nate Graham from comment #1)
> Is the bug that it doesn't open *quickly*, or that it doesn't open at all?

Does not open at all: I see a launch notification, but then nothing happens and I can wait but Spectacle doesn't show. If I wait some more and click PrtScrn again, Spectacle does appear.

If I cancel the screenshot and then trigger Spectacle again - it does appear even if I trigger it immediately. Its only a problem to retrigger Spectacle after a successful capture.
Comment 3 Nate Graham 2023-02-14 17:21:17 UTC
Oh I know what this is. ...or rather, was: Bug 463344. It was just fixed today!

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