Bug 477962 - Tooltip gets stuck after click on a tab of Media Player applet
Summary: Tooltip gets stuck after click on a tab of Media Player applet
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (show other bugs)
Version: 5.90.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-03 00:57 UTC by Patrick Silva
Modified: 2023-12-25 14:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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