Bug 403891 - [feature] - secondary screen location option
Summary: [feature] - secondary screen location option
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: 0.8.5
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-03 11:11 UTC by Jakub Lipiński
Modified: 2019-02-03 15:01 UTC (History)
0 users

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


Attachments
case1_screenshot (890.40 KB, image/png)
2019-02-03 11:22 UTC, Jakub Lipiński
Details
case2_screenshot (1.65 MB, image/png)
2019-02-03 11:22 UTC, Jakub Lipiński
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Lipiński 2019-02-03 11:11:28 UTC
I want to have docks setup:
Case 1 - only laptop:
* only first latte-dock showed
Case 2 - laptop + external monitor
* first latte-dock on external monitor(primary)
* second latte-dock on laptop monitor(secondary)

For now i can only set location to primary one, or specific output(hdmi/laptop).
Comment 1 Jakub Lipiński 2019-02-03 11:22:07 UTC
Created attachment 117804 [details]
case1_screenshot
Comment 2 Jakub Lipiński 2019-02-03 11:22:25 UTC
Created attachment 117805 [details]
case2_screenshot
Comment 3 Michail Vourlakos 2019-02-03 13:24:13 UTC
I suppose that first latte dock can be set on primary and second latte dock to be explicit one the laptop screen what is the problem with that configuration?
Comment 4 Jakub Lipiński 2019-02-03 13:45:52 UTC
When second dock is set directly to laptop screen, and I unplug external monitor first dock back to laptop screen. And there are 2 top docks which should be on laptop screen - which is forbidden for latte.
Comment 5 Michail Vourlakos 2019-02-03 14:31:30 UTC
(In reply to lipinski.jb from comment #4)
> When second dock is set directly to laptop screen, and I unplug external
> monitor first dock back to laptop screen.

this is correct

> And there are 2 top docks which  should be on laptop screen - which is 
> forbidden for latte.

not exactly, Latte does not allow 2 different docks to occupy the same edge at the same time. What Latte will do is the following:

1. When you unplug your external monitor, your laptop screen will be now your primary one
2. Latte will identify that the first dock must be moved at the laptop screen
3. Latte will identify that at that edge there is already another dock that occupies that edge BUT primary set docks have higher priority
4. Latte will unload the second dock and afterwards will move the first dock in its place

Take note that at [4] your second dock is NOT removed, it is just unloaded until the circumstances are capable to show it back again.

So when you connect again your external monitor:
1. You first dock will be moved back again to the external monitor which now the primary
2. Latte now identifies that the edge of the unloaded dock (the second dock) is free.
3. Latte loads again the second dock for laptop screen
Comment 6 Jakub Lipiński 2019-02-03 14:40:36 UTC
So this setup should work without bugs? 
Otherwise maybe there should be some more obvious option?
Comment 7 Michail Vourlakos 2019-02-03 15:01:43 UTC
(In reply to lipinski.jb from comment #6)
> So this setup should work without bugs? 
> Otherwise maybe there should be some more obvious option?

yeah no problem, it should work just fine...
Rely on Latte for this, give it trust... :)
If something do not behave as it should feel free to report back we will fix it but as long as you are using Latte>=0.8.2 then this is the current implementation