Bug 477114

Summary: Menu key press on a desktop applet opens context menu in the top left corner of the screen
Product: [Plasma] plasmashell Reporter: ratijas <me>
Component: ContainmentAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: nate, notmart
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ratijas 2023-11-16 20:31:08 UTC
SUMMARY

Context menu of desktop applets opens at (0,0) position, but only if invoked via keyboard.

STEPS TO REPRODUCE
1. Put an applet onto the desktop
2. Focus on it somehow (expanded representations may help with that, because they usually have controls like buttons and switches)
3. Press Menu key on a keyboard

OBSERVED RESULT
Applet's context menu opens at the top left corner of the screen.

EXPECTED RESULT
Context menu should open somewhere near the applet.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.81.0
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.6.1-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Comment 1 Nate Graham 2023-11-17 21:07:00 UTC
Can reproduce even for the desktop itself. Would be nice if it was centered on the parent IMO, instead of appearing at 0,0.