Bug 400690 - [feature] - Latte Dock should allow the user to click on an application to cycle through instances
Summary: [feature] - Latte Dock should allow the user to click on an application to cy...
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
: 401190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-05 09:35 UTC by mocroborsato
Modified: 2019-01-19 14:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mocroborsato 2018-11-05 09:35:09 UTC
SUMMARY
https://www.reddit.com/r/kde/comments/9r2l49/latte_dock_how_do_you_click_to_cycle_like_in

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2018-11-19 12:29:31 UTC
*** Bug 401190 has been marked as a duplicate of this bug. ***
Comment 2 leftcrane 2018-12-01 23:57:15 UTC
If you implement this, please don't add minimization to the cycle. I should just cycle between windows in the group not minimize/restore states.

I know current behavior allows for minimizing by left click on the dock icon, but this behavior is negatively impacts the primary function of the dock.
Comment 3 Michail Vourlakos 2018-12-02 00:10:04 UTC
(In reply to leftcrane from comment #2)
> If you implement this, please don't add minimization to the cycle. I should
> just cycle between windows in the group not minimize/restore states.
> 
> I know current behavior allows for minimizing by left click on the dock
> icon, but this behavior is negatively impacts the primary function of the
> dock.

The user will be able to set the left click action:

Current: as it works now
Cycle: single tasks will minimize/restore and grouped tasks only cycling


I cant think of other option to be useful to the user for left click
Comment 4 leftcrane 2018-12-02 11:30:54 UTC
i mean the cycle shouldn't permanently affect the minimization state, because the user just wants to see the windows, not minimize or restore.

So if you have a group of three windows: 

* window 1 active, 
* window 2 is minimized, 
* window 3 is normal.

Left-clicking on the group icon does the following.

1.  First click restores and activates window 2 (the user wanted window 2, so they get window 2). the minimization state of other windows is unaffected.
2.  Second click activates window 3 and brings window 2 back to its original minimized state (the user just wanted window 3, they did not want to un-minimize/restore window 2)
3.  Third click activates window 1.
4. Fourth Click, does the same thing (1) does.

If the group has only one window and that window is already active, clucking on the task-bar icon should do NOTHING.

==

Or it could be even simpler (for the developer): clicking on the taskbar only restores/cycles, but NEVER minimizes.
Comment 5 Michail Vourlakos 2018-12-02 12:05:58 UTC
(In reply to leftcrane from comment #4)
> 

have you used the mouse wheel behavior for cycling grouped tasks that Latte already provides?
Comment 6 leftcrane 2018-12-02 12:18:27 UTC
(In reply to Michail Vourlakos from comment #5)
> (In reply to leftcrane from comment #4)
> > 
> 
> have you used the mouse wheel behavior for cycling grouped tasks that Latte
> already provides?


Yes, that's the simple version version of the behavior I'd like too see. So yes, just allow the left click do the exactly the same thing that the scroll event does now.
Comment 7 leftcrane 2018-12-02 12:24:06 UTC
PS: keeping the minimization states would be "nice" but it's not essential.
Comment 8 Michail Vourlakos 2018-12-02 12:27:00 UTC
(In reply to leftcrane from comment #6)
> (In reply to Michail Vourlakos from comment #5)
> > (In reply to leftcrane from comment #4)
> > > 
> > 
> > have you used the mouse wheel behavior for cycling grouped tasks that Latte
> > already provides?
> 
> 
> Yes, that's the simple version version of the behavior I'd like too see. So
> yes, just allow the left click do the exactly the same thing that the scroll
> event does now.


left click will provide the same behavior with the exception of single task. For single task the behavior will be restore/minimize
Comment 9 Michail Vourlakos 2019-01-19 14:34:41 UTC
Git commit 9c3726a07bf066b14701a257bc63bd43434be9b8 by Michail Vourlakos.
Committed on 19/01/2019 at 14:30.
Pushed by mvourlakos into branch 'master'.

support different actions for left click and hover

--app now supports the user to set different actions
for tasks left-click and for hover event
Related: bug 400429

M  +38   -6    containment/package/contents/config/main.xml
M  +2    -2    containment/package/contents/ui/main.qml
M  +5    -1    liblatte2/types.h
M  +7    -2    plasmoid/package/contents/ui/main.qml
M  +66   -17   plasmoid/package/contents/ui/task/TaskDelegate.qml
M  +97   -30   shell/package/contents/configuration/pages/TasksConfig.qml

https://commits.kde.org/latte-dock/9c3726a07bf066b14701a257bc63bd43434be9b8