Bug 435687 - Misplaced blue line after clearing Clipboard applet with click on "Remove from history" button of each item
Summary: Misplaced blue line after clearing Clipboard applet with click on "Remove fro...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Konrad Materka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-13 12:54 UTC by Patrick Silva
Modified: 2021-04-19 21:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.22.0


Attachments
screenshot (162.68 KB, image/png)
2021-04-13 12:54 UTC, Patrick Silva
Details
Misplaced line on battery applet (18.75 KB, image/png)
2021-04-14 07:33 UTC, David Redondo
Details
misplaced blue line reproduced with Disks & Devices applet (183.19 KB, image/png)
2021-04-14 17:31 UTC, Patrick Silva
Details

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