Bug 492493

Summary: Pop-up menu opened in applet pop-up can move to the panel when the popup is closed while it was open
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kde, natalie_clarius, nate, niccolo.venerandi, niccolo, orxcyd
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=475646
Latest Commit: Version Fixed In: 6.2.0
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2024-09-01 13:26:24 UTC
Created attachment 173200 [details]
screenshot

STEPS TO REPRODUCE
1. click on the Power Management applet while some app is blocking the power management
2. click on "Unblock" button
3. click on the Power Management applet, so it is deactivated/closed

OBSERVED RESULT
partially visible "Unblock" menu remains open. Please see the attached screenshot.

EXPECTED RESULT
the observed result should not occur

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-09-05 20:40:59 UTC
Can confirm. Very similar issue to Bug 475646, but applied to popup menus rather than tooltips.

We could maybe have the widget listen for the close signal and manually close any pop-up menus, but I feel like a more universal solution would be preferable.
Comment 2 Nate Graham 2024-09-07 07:53:49 UTC
*** Bug 492439 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2024-09-18 15:11:15 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/426
Comment 4 Niccolò Venerandi 2024-09-26 08:26:37 UTC
Git commit b2bd1aadddbd7f904e7d970921168d93d4f498d6 by Niccolò Venerandi.
Committed on 26/09/2024 at 08:25.
Pushed by niccolove into branch 'master'.

Port popup to PlasmaExtras.Menu

M  +11   -14   applets/batterymonitor/package/contents/ui/InhibitionItem.qml

https://invent.kde.org/plasma/powerdevil/-/commit/b2bd1aadddbd7f904e7d970921168d93d4f498d6
Comment 5 Niccolò Venerandi 2024-09-26 08:26:53 UTC
Git commit 0981a0f551f05c8398babc21fc2a698781e41ecf by Niccolò Venerandi.
Committed on 26/09/2024 at 08:26.
Pushed by niccolove into branch 'Plasma/6.2'.

Port popup to PlasmaExtras.Menu


(cherry picked from commit b2bd1aadddbd7f904e7d970921168d93d4f498d6)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +11   -14   applets/batterymonitor/package/contents/ui/PowerManagementItem.qml

https://invent.kde.org/plasma/powerdevil/-/commit/0981a0f551f05c8398babc21fc2a698781e41ecf