Bug 477962

Summary: Tooltip gets stuck after click on a tab of Media Player applet
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Media Player widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, nate
Priority: NOR Keywords: qt6
Version First Reported In: 5.90.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Patrick Silva 2023-12-03 00:57:36 UTC
STEPS TO REPRODUCE
1. play audio/video with two players at the same time
2. click on Media Player applet
3. click on tabs on top
4. close the Media Player applet
5. reopen the Media Player applet

OBSERVED RESULT
the tooltip of the last tab clicked in the step 3 appears immediately after reopening the Media Player in the last step

EXPECTED RESULT
the observed result should not occur

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-12-05 20:30:19 UTC
Can reproduce with those steps.
Comment 2 Fushan Wen 2023-12-25 14:58:25 UTC
Git commit f746e4cfc6a1e14b4c99b9280dfa7c58bd6f316c by Fushan Wen.
Committed on 25/12/2023 at 15:46.
Pushed by fusionfuture into branch 'master'.

applets/mediacontroller: show tooltip only when active focus is from keyboard

The attached tooltip is always shown when the widget is expanded because
its parent tabbar has active focus. By also checking the focus reason,
the tooltip will be still hidden when it's not focused by keyboard
navigation.
FIXED-IN: 6.0

M  +1    -1    applets/mediacontroller/package/contents/ui/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/f746e4cfc6a1e14b4c99b9280dfa7c58bd6f316c