Bug 511763

Summary: Right click menu is not shown consistently
Product: [Frameworks and Libraries] frameworks-kstatusnotifieritem Reporter: Tasos Sahanidis <tasos>
Component: generalAssignee: Alexander Lohnau <alexander.lohnau>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tasos Sahanidis 2025-11-07 11:14:14 UTC
SUMMARY

When the last created window is hidden, right clicking on the KSNI under Sway with swaybar no longer shows a menu.

STEPS TO REPRODUCE

1. Run any application that uses KSNI (KAlarm in this example) inside Sway
2. Go to Settings -> Configure KAlarm -> View -> Show in system tray -> Always show
3. Restart KAlarm
4. Right click on the KSNI
5. Observe the menu being visible
6. Left click on the KSNI to hide the KAlarm main window
7. Right click on the KSNI again
8. Observe no menu showing up
9. Left click on the KSNI to show the main window
10. Right click on the KSNI again
11. Observe the menu being visible
12. Go to Help -> About KAlarm
13. Click on Close
14. Right click on the KSNI
15. Observe no menu showing up

OBSERVED RESULT

The menu does not show up consistently.

EXPECTED RESULT

The menu shows up consistently.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: N/A
KDE Plasma Version: N/A
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Sway version: 1.11

ADDITIONAL INFORMATION

The following is printed to the console when right clicking:

qt.qpa.wayland: Failed to create grabbing popup. Ensure popup  QWidgetWindow(0xsomeaddress, name="QMenuClassWindow") has a transientParent set and that parent window has received input.

I do not know when this issue started occurring or if it is a regression.