Bug 404099

Summary: Latte plasmoid's task tooltip shouldn't be displayed while the mouse is still inside of the task item
Product: [Unmaintained] lattedock Reporter: trmdi
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Latte plasmoid's behavior
Plasma's TaskManager
video

Description trmdi 2019-02-08 15:12:09 UTC
STEPS TO REPRODUCE
1. Move the mouse to the Latte plasmoid's task item of an running window.
2. Click on it to change the minimized/unminimized state of that window.
3. Do not move the mouse out of the task item.

WHAT HAPPENS:
- The task tooltip of that window appears.

EXPECTED RESULT:
- If the mouse is still inside of the task item -> the tooltip should not appear.
- If the mouse is moved out of the task item, then hover the mouse over it again -> this time the tooltip should appear.
(This is how Plasma TaskManager works, Latte should also behave this way.)
Comment 1 trmdi 2019-02-08 15:21:17 UTC
Created attachment 117928 [details]
Latte plasmoid's behavior
Comment 2 trmdi 2019-02-08 15:25:54 UTC
Created attachment 117930 [details]
Plasma's TaskManager
Comment 3 Michail Vourlakos 2019-02-08 16:28:52 UTC
Git commit bd68d5dbcc31c7894404d26beb6cac8b5ea9a7fd by Michail Vourlakos.
Committed on 08/02/2019 at 16:28.
Pushed by mvourlakos into branch 'master'.

dont show Preview after activating task with click

M  +1    -1    plasmoid/package/contents/ui/ToolTipDelegate2.qml
M  +5    -4    plasmoid/package/contents/ui/main.qml
M  +19   -15   plasmoid/package/contents/ui/task/TaskItem.qml

https://commits.kde.org/latte-dock/bd68d5dbcc31c7894404d26beb6cac8b5ea9a7fd
Comment 4 trmdi 2019-02-09 02:50:05 UTC
Created attachment 117940 [details]
video

The commit above only fix it in the case you keep the mouse inside the task item.
The issue still exists in the case you are moving the mouse like this video:
Comment 5 trmdi 2019-02-09 03:00:00 UTC
The behavior could be like this:
- When the minimized state changes -> isAbleToShowTooltip = false
- When the mouse goes out of the task item, or go into it -> isAbleToShowTooltip = true
Comment 6 Michail Vourlakos 2019-02-09 07:29:06 UTC
Git commit 7149cf55694127c437dfa2fd5ba44137521e3409 by Michail Vourlakos.
Committed on 09/02/2019 at 07:28.
Pushed by mvourlakos into branch 'master'.

do not make previews show intrusive

M  +1    -0    plasmoid/package/contents/ui/main.qml
M  +8    -62   plasmoid/package/contents/ui/task/TaskItem.qml

https://commits.kde.org/latte-dock/7149cf55694127c437dfa2fd5ba44137521e3409