Bug 488294

Summary: Panel Status and Notification icons are still highlighted after the cursor moves out of its boundary
Product: [Plasma] plasmashell Reporter: FishBoneEK
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: kde, materka, nate
Priority: NOR    
Version First Reported In: 6.0.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description FishBoneEK 2024-06-10 10:14:33 UTC
Created attachment 170318 [details]
Screenshot

SUMMARY
Please see the attached screenshot first. Ignore the dark icons: they are incorrectly used icons and unrelated to this issue.
Notice the icon/button Display Configuration is highlighted, but my cursor isn't hovering over it.

STEPS TO REPRODUCE
1. Open Status and Notification
2. Move your cursor over an icon/button
3. Then move your cursor out of it

OBSERVED RESULT
The icon/button is highlighted

EXPECTED RESULT
It shouldn't be highlighted after the cursor moves away from it

ADDITIONAL INFORMATION
Using Xorg
Comment 1 Nate Graham 2024-06-10 17:05:20 UTC
Can reproduce on Wayland too. The highlight effect disappears when the cursor moves out of the popup, but not when it moves off of the specific item.
Comment 2 Nate Graham 2024-06-30 15:45:49 UTC
Took a look into the code, and this is intentional. The highlight effect isn't just for hover; it also communicate which item has keyboard focus. If we hide it or removed it while you're not hovering over any items, then keyboard navigability would be impaired.

The fact that it disappears when moving out of the popup is non-standard though. I'll remove that.
Comment 3 Bug Janitor Service 2024-06-30 15:47:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4489
Comment 4 Nate Graham 2024-06-30 16:04:17 UTC
Git commit c68c9de30289402e27862bd93381ca9f648c7ae3 by Nate Graham.
Committed on 30/06/2024 at 15:45.
Pushed by ngraham into branch 'master'.

applets/systemtray: don't remove item highlight when unhovering grid

We don't do this elsewhere for lists and grids that have a menu-style
persistent highlight, like Kickoff.

M  +0    -3    applets/systemtray/package/contents/ui/HiddenItemsView.qml

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