Bug 435687

Summary: Misplaced blue line after clearing Clipboard applet with click on "Remove from history" button of each item
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: System TrayAssignee: Konrad Materka <materka>
Status: RESOLVED FIXED    
Severity: normal CC: kde, materka, nate
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.22.0
Attachments: screenshot
Misplaced line on battery applet
misplaced blue line reproduced with Disks & Devices applet

Description Patrick Silva 2021-04-13 12:54:31 UTC
Created attachment 137559 [details]
screenshot

STEPS TO REPRODUCE
1. use Wayland session
2. copy texts to clipboard until history of Clipboard applet in system tray is full
3. click on Clipboard applet in system tray and click on "Keep open" button in the upper right corner of its popup
4. hover over each item in the history of Clipboard applet and click on its "Remove from history" button until clipboard is empty

OBSERVED RESULT
as we can see in the attached screenshot, the blue line that highlights the active
applet is misplaced

EXPECTED RESULT
whole system tray should be highlighted with a blue line

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2021-04-13 22:12:26 UTC
Cannot reproduce.
Comment 2 David Redondo 2021-04-14 07:32:19 UTC
I can reproduce on X with the battery applet on my desktop, unchecking the check box moves the applet into the panel with a misplaced line
Comment 3 David Redondo 2021-04-14 07:33:15 UTC
Created attachment 137577 [details]
Misplaced line on battery applet
Comment 4 Patrick Silva 2021-04-14 17:31:06 UTC
Created attachment 137607 [details]
misplaced blue line reproduced with Disks & Devices applet

I can't reproduce with battery applet on my desktop computer, but I have just found another way to reproduce on neon unstable:

while Disks & Devices applet is hidden in system tray, set it to show
all devices. Then it unhides in system tray and we see a misplaced blue line.
Comment 5 Konrad Materka 2021-04-15 18:29:03 UTC
I'm able to reproduce it with Lock Key Status. I'll fix it.
Comment 6 Bug Janitor Service 2021-04-15 21:01:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/791
Comment 7 Konrad Materka 2021-04-19 21:27:44 UTC
Git commit d6a2e1976e43e7eb9be88c2c07e5ed31ad76fded by Konrad Materka.
Committed on 19/04/2021 at 21:27.
Pushed by kmaterka into branch 'master'.

[applets/systemtray] Fix highlight when applet comes back from hidden

Highlight should work correctly if selected applet changes state
and is moved to hidden area and then comes back to visble area.
FIXED-IN: 5.22.0

M  +15   -3    applets/systemtray/package/contents/ui/CurrentItemHighLight.qml

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