Bug 455656 - Preview and Highlight Windows - First hover shows both preview and also highlights application window.
Summary: Preview and Highlight Windows - First hover shows both preview and also highl...
Status: RESOLVED INTENTIONAL
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.10.8
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-20 14:22 UTC by Tomas Nilzon
Modified: 2022-06-22 11:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Nilzon 2022-06-20 14:22:11 UTC
SUMMARY
***
If you select "Preview and Highlight Windows" in the "Settings/Tasks Actions/Hover" the first hover on an icon will activate both "Preview" and also "Highlight" the application window.
***

STEPS TO REPRODUCE
1. Open "Edit Dock" and select "Preview and Highlight Windows" in the "Settings/Tasks Actions/Hover"
2. Close "Edit Dock"

OBSERVED RESULT
1. Open any number (more than one) of application windows on the desktop.
2. Hover an icon for any of the open applications with the mouse pointer and keep the pointer still over the icon.
3. Watch the preview to pop up, and also the application window to be highlighted on the desktop.
4. Then move the pointer from the icon to the preview and back again to the same icon.
5. Watch the preview to still be displayed, and the application window to not be highlighted.
6. Then move the pointer from the same icon to the preview again and watch the application window to be highlighted.
7. Moving the pointer to and from the same preview will now also toggle application window highlight (this is how it should be). It is only the first time the pointer move to hover any icon for an open application window that behaves wrong.

EXPECTED RESULT
1. Open any number (more than one) of application windows on the desktop.
2. Hover an icon for any of the open applications with the mouse pointer and keep the pointer still over the icon.
3. Watch the preview to pop up and no highlighting occurring.
4. Then move the pointer from the same icon to the preview and watch the application window to be highlighted.
5. Then move the pointer from the preview and back again to the same icon.
6. Watch the preview to still be displayed, and the application window to not be highlighted.
7. Moving the pointer to and from the same preview will now also toggle application window highlight.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.18.5-1-MANJARO
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
N/A
Comment 1 Michail Vourlakos 2022-06-22 06:02:20 UTC
Git commit d5bbdf57dc4a73f487182ea2799b70cc28f60f37 by Michail Vourlakos.
Committed on 22/06/2022 at 06:01.
Pushed by mvourlakos into branch 'master'.

highlight only grouped windows when hovered

M  +6    -2    plasmoid/package/contents/ui/task/TaskMouseArea.qml

https://invent.kde.org/plasma/latte-dock/commit/d5bbdf57dc4a73f487182ea2799b70cc28f60f37
Comment 2 Tomas Nilzon 2022-06-22 06:26:40 UTC
(In reply to Michail Vourlakos from comment #1)
> Git commit d5bbdf57dc4a73f487182ea2799b70cc28f60f37 by Michail Vourlakos.
> Committed on 22/06/2022 at 06:01.
> Pushed by mvourlakos into branch 'master'.
> 
> highlight only grouped windows when hovered
> 
> M  +6    -2    plasmoid/package/contents/ui/task/TaskMouseArea.qml
> 
> https://invent.kde.org/plasma/latte-dock/commit/
> d5bbdf57dc4a73f487182ea2799b70cc28f60f37

Just tested this update. It does not work as expected. "Highlight" should only occur when the "Preview" is hovered, not when the application icon is hovered. When the application icon is hovered, there should only be a "Preview" (and "Highlight" only when the mouse pointer hovers the "Preview").
Comment 3 Michail Vourlakos 2022-06-22 08:30:19 UTC
nope, I thing it works just fine, especially when you are hovering a grouped task and the first hovering on the tasks shown only windows of the same tasks and hides all the rest.
Comment 4 Tomas Nilzon 2022-06-22 09:08:58 UTC
(In reply to Michail Vourlakos from comment #3)
> nope, I thing it works just fine, especially when you are hovering a grouped
> task and the first hovering on the tasks shown only windows of the same
> tasks and hides all the rest.

Yes, I think that's a correct behavior if you have selected "Highlight Windows" only in the settings. But if you have selected "Preview and Highlight", it is more logic with a behavior as I described: When the application icon is hovered, there should only be a "Preview" (and "Highlight" only when the mouse pointer hovers the "Preview").

You can compare this with how this functionality behaves in gnome with the shell extension "Dash to Panel" (and also in Windows 10 panel). They both behave as I think also Latte should handle this, when you have both "Preview and Highlight" selected in the settings.