Bug 449251

Summary: Global Menu Applet incorrectly handle multiple activities and show menu items from another app.
Product: [Plasma] plasmashell Reporter: Aleksey Zagorodnikov <xglooom>
Component: Global Menu widgetAssignee: ratijas <me>
Status: CONFIRMED ---    
Severity: normal CC: mvourlakos, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: reproduced on chrome as well

Description Aleksey Zagorodnikov 2022-01-27 13:57:53 UTC
Created attachment 145989 [details]
reproduced on chrome as well

SUMMARY
In some cases Global Menu Applet still show menu items from previously focused app, when current focused app hasn't global menu.

STEPS TO REPRODUCE
1. Place on panel Global Menu Applet
2. Switch to second activity
3. Open for example Dolphin
4. On a 1st activity open for example maximized Firefox, and sure that is in focus.
5. Open Dolphin in 1st activity
6. Close Dolphin in 1st activity

OBSERVED RESULT
After closed Dolphin focus brings back to Firefox, but global menu applet still show menu from Dolphin from another activity.

EXPECTED RESULT
Global Menu Applet should be empty as Firefox not expose menu.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.2-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × Genuine Intel® CPU 0000 @ 3.20GHz
Memory: 31,0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Comment 1 ratijas 2022-09-22 22:37:24 UTC
This will be fixed by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2157