Bug 406215 - Pager applet in Latte Dock presents all visisted virtual desktops as selected
Summary: Pager applet in Latte Dock presents all visisted virtual desktops as selected
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.8.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-04 13:22 UTC by Dobrogi
Modified: 2019-05-16 19:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot 1 (14.83 KB, image/png)
2019-04-04 13:22 UTC, Dobrogi
Details
screenshot 2 (5.48 KB, image/png)
2019-04-04 13:22 UTC, Dobrogi
Details
screenshot 3 (7.50 KB, image/png)
2019-04-04 13:22 UTC, Dobrogi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dobrogi 2019-04-04 13:22:00 UTC
Created attachment 119239 [details]
screenshot 1

When latte-dock starts all desktops at pager applet are presented correctly (screenshot 1). After switching desktop each new desktop is being selected with accent color but the previous one is not deselected. When rotated through all the desktops, all are maked as selected (screenshot 3).

STEPS TO REPRODUCE
1. Start latte-dock
2. Select second virtual desktop
3. Select third virtual desktop
4. Select fourth virtual desktop

OBSERVED RESULT
Each visited virtual desktop is presented as selected (previous desktops are not deselected).

EXPECTED RESULT
Only one (current) virtual desktop should be presented as selected.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Comment 1 Dobrogi 2019-04-04 13:22:25 UTC
Created attachment 119240 [details]
screenshot 2
Comment 2 Dobrogi 2019-04-04 13:22:42 UTC
Created attachment 119241 [details]
screenshot 3
Comment 3 Michail Vourlakos 2019-04-04 13:23:16 UTC
you have a different behavior when you add the pager in a plasma panel?
Comment 4 Dobrogi 2019-04-04 13:25:28 UTC
In plasma panel the pager behaves correctly.
Comment 5 Michail Vourlakos 2019-04-04 14:06:39 UTC
pager applet can not be used with parabolic effect properly. The only way to fix this issue is the following, lock the pager from applet tooltip in editing mode...

Pager is using hovering indicator and that can not work right with Latte hovering mechanisms... Disabling Latte hovering mechanisms for the pager is the only way forward.
Comment 6 Michail Vourlakos 2019-05-16 15:07:57 UTC
I may have found a way to solve this...
Comment 7 Michail Vourlakos 2019-05-16 19:31:49 UTC
Git commit 927c518a6d2242c4235116670eaede277b75deb6 by Michail Vourlakos.
Committed on 16/05/2019 at 19:27.
Pushed by mvourlakos into branch 'master'.

track applets mouse click events differently

--the applets mouse click events are now tracked
for View::MouseSignals tracking mechanism. This
way no MouseArea is used overlaied over the applets
for the mouse click events. In that way the applets
are using their own built-in functionality for mouse
click events and at the same time for Latte is tracking
only the neutral areas for this meaning the applets external
margins in order to obey Fitt's Law

M  +21   -21   containment/package/contents/ui/applet/AppletItem.qml

https://commits.kde.org/latte-dock/927c518a6d2242c4235116670eaede277b75deb6