Bug 398834 - Latte plasmoid has higher priority than plasma taskmanagers in Latte panels/docks
Summary: Latte plasmoid has higher priority than plasma taskmanagers in Latte panels/d...
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: plasmoid (show other bugs)
Version: 0.8.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-19 10:37 UTC by RaitaroH
Modified: 2018-10-08 19:34 UTC (History)
0 users

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


Attachments
My shortcuts (228.85 KB, image/png)
2018-09-20 05:18 UTC, RaitaroH
Details
Plasmoid is activated after `latte-dock --replace` (368.87 KB, image/gif)
2018-09-20 05:23 UTC, RaitaroH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RaitaroH 2018-09-19 10:37:43 UTC
Activate task manager entry * - Shortcut: None.
Activate latte-dock task manager entry * - Shortcut: Meta+Num

Scenario: 1 panel with task manager, 1 dock with latte manager.

Expected behaviour: latte plasmoid should be activated.
Actual behaviour: the task manager in the latte panel is activated instead.
Comment 1 Michail Vourlakos 2018-09-19 11:15:23 UTC
(In reply to RaitaroH from comment #0)
> Activate task manager entry * - Shortcut: None.
> Activate latte-dock task manager entry * - Shortcut: Meta+Num
> 
> Scenario: 1 panel with task manager, 1 dock with latte manager.
> 
> Expected behaviour: latte plasmoid should be activated.
> Actual behaviour: the task manager in the latte panel is activated instead.

this isnt how it works... Latte receives the shortcut trigger and based on dock/panel priority identifies which taskmanager should be activated. The priority is the following:

1. OnPrimary screen has always bigger priority
2. the edges priority is: bottom, left, top, right

I suppose that the latte panel with the plasma taskmanager has higher priority than the latte dock
Comment 2 RaitaroH 2018-09-19 15:47:13 UTC
> 1. OnPrimary screen has always bigger priority
> 2. the edges priority is: bottom, left, top, right
> 
> I suppose that the latte panel with the plasma taskmanager has higher
> priority than the latte dock

Aaaa, then that is broken because after a --replace the plasmoid took priority. I still want latte to just listen to the shortcuts set.
Comment 3 Michail Vourlakos 2018-09-19 16:19:08 UTC
I don't understand what you mean about listening the shortcuts set. Show me a screenshot of your desktop.
Comment 4 RaitaroH 2018-09-20 05:18:10 UTC
Created attachment 115104 [details]
My shortcuts
Comment 5 RaitaroH 2018-09-20 05:23:06 UTC
Created attachment 115105 [details]
Plasmoid is activated after `latte-dock --replace`

So as you can see if I hit `Meta + 3` instead of the task manager to be triggered, my latte plasmoid to the left is triggered instead. I just use that plasmoid as a nice launcher so to speak.
Comment 6 Michail Vourlakos 2018-09-20 11:08:56 UTC
ok...

the mentioned priority I just checked that is only in master branch and it cant be added to v0.8 branch..

And again I must investigate the code because I think that Latte docks that can show applets badges have higher priority...

if you can test master branch you can provide me with me feedback...
Comment 7 Michail Vourlakos 2018-09-20 11:16:27 UTC
this is messed up when having both two different taskmanagers in the same screen...

Latte plasmoid publishes geometries and plasma taskmanagers at the same time so showing/minimizing animations dont have any priority for which taskmanager to work with... 

In general taskmanagers are designed in a way to be only one present for each screen...

So the solution to your problem must be different...

What do you need the Latte plasmoid on the left? You can add these launchers as applets if you want, the only difference is that you wont have the bouncing animation and the lines/dots to indicate the windows presence...
Comment 8 Michail Vourlakos 2018-09-20 11:17:49 UTC
update bug flag
Comment 9 RaitaroH 2018-09-21 03:50:05 UTC
I am not sure if `Activate entry` will work then. I like to be able to launch widgets I've put on my dock on the left (like in the gif). I think you must have the plasmoid on there in order for that to work. Also putting those icons on the bottom panel just takes space.
Comment 10 Michail Vourlakos 2018-09-21 11:54:00 UTC
(In reply to RaitaroH from comment #9)
> I am not sure if `Activate entry` will work then. I like to be able to
> launch widgets I've put on my dock on the left (like in the gif). I think
> you must have the plasmoid on there in order for that to work.

I just checked, you are right...
this can be fixed in master branch and at the same to always follow only the criteria I mentioned before.

1. Primary screen highest priority
2. bottom, left, top, right (first that will be found is going to be used for activating entries)



> Also putting
> those icons on the bottom panel just takes space.

an alternative could  be to use the default plasma panel for the bottom one panel
Comment 11 Michail Vourlakos 2018-09-21 12:00:15 UTC
I opened also these in order to track things down:

https://bugs.kde.org/show_bug.cgi?id=398914
https://bugs.kde.org/show_bug.cgi?id=398913
Comment 12 RaitaroH 2018-09-22 07:25:36 UTC
> an alternative could  be to use the default plasma panel for the bottom one panel

Well, I used to have that but it would not show itself quite often so I tried to switch to latte-panel instead. Seems that latte has the same problem and now this one so I moved back to my old setup: latte-dock on the left and plasma panel on the bottom.
Comment 13 Michail Vourlakos 2018-10-08 12:44:26 UTC
this has been totally addressed and fixed in master version
Comment 14 RaitaroH 2018-10-08 19:34:48 UTC
(In reply to Michail Vourlakos from comment #13)
> this has been totally addressed and fixed in master version

Nice. Thanks. I kinda have another bug to open so... sorry about that.