Bug 396806 - Working with 2 screens and two docks. One dock in the secondary screen. When restarting always both in the main screen
Summary: Working with 2 screens and two docks. One dock in the secondary screen. When ...
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.8.0
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-24 08:19 UTC by Jep
Modified: 2018-07-24 19:39 UTC (History)
0 users

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


Attachments
Image after restarting latte (2.28 MB, image/png)
2018-07-24 15:34 UTC, Jep
Details
Image after setting screen (1.85 MB, image/png)
2018-07-24 15:34 UTC, Jep
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jep 2018-07-24 08:19:18 UTC
I have two screens, one is the laptop's and the other is an external monitor. They appear in latte dock as "On Primary", "eDP1", "DP1". My primary screen is "DP1", the external monitor.

Every time that I restart latte dock, the two docks appear in "On Primary". I have always to choose the "eDP1" screen on the secondary dock.

I have export my layout to see if the information was there, I have seen that there is the key lastScreen and takes values 10 and 11. Is this information related to the position of the docks?
Comment 1 Michail Vourlakos 2018-07-24 09:56:46 UTC
1. You mean after relogin or after closing/starting Latte?

2. Can you show me a screenshot of your system with the two screens?
Comment 2 Jep 2018-07-24 15:34:03 UTC
Created attachment 114095 [details]
Image after restarting latte
Comment 3 Jep 2018-07-24 15:34:43 UTC
Created attachment 114096 [details]
Image after setting screen
Comment 4 Jep 2018-07-24 15:35:48 UTC
Hi.

I have attached the two screenshots.

The problem is after closing/starting Latte.

Myabe this information is also useful, I'm not using Kwin, I'm using compiz-reloaded.
Comment 5 Michail Vourlakos 2018-07-24 15:39:59 UTC
(In reply to Jep from comment #4)
> Myabe this information is also useful, I'm not using Kwin, I'm using
> compiz-reloaded.

no idea... 

1. the left dock at the right screen you dont want it to move ?
2. Have you set it at specific screen or onPrimary?
Comment 6 Michail Vourlakos 2018-07-24 15:42:05 UTC
start Latte with 'latte-dock -d' from command prompt send please the output
Comment 7 Michail Vourlakos 2018-07-24 19:30:19 UTC
Git commit 03b469eff52b736454af056d21b847cf8a9b3fb9 by Michail Vourlakos.
Committed on 24/07/2018 at 19:25.
Pushed by mvourlakos into branch 'master'.

IMPORTANT: Update multi-screen codepage!!!

--after v0.8 release many issues with multi-architecture
were identified. An alternative approach was needed
in order for Latte to get a more user-predictable state.
In new approach:
--onPrimary docks have always higher value
and should be shown, this is also like how plasma is
moving its panels.
--explicit docks are removed if their edge in their screen
is occupied by an onPrimary dock
--be stupid smart in order to check if docks contain
tasks and try to not remove them based on screen-changes
is removed! Over-Complicated code that doesnt help
in maintainability...

one of the issues was reported at following bug report...

M  +10   -2    app/dock/dockview.cpp
M  +223  -81   app/layout.cpp
M  +3    -0    app/layout.h
M  +2    -2    app/layoutmanager.cpp
M  +15   -0    app/screenpool.cpp
M  +1    -0    app/screenpool.h

https://commits.kde.org/latte-dock/03b469eff52b736454af056d21b847cf8a9b3fb9
Comment 8 Michail Vourlakos 2018-07-24 19:39:01 UTC
(In reply to Michail Vourlakos from comment #5)
> (In reply to Jep from comment #4)
> > Myabe this information is also useful, I'm not using Kwin, I'm using
> > compiz-reloaded.
> 

Based on your report I found many issues with multi-screen implementation! I had to substitute some of the most important implementation!

If you can build Latte to test it out it would be of great help...
it is scheduled also for v0.8.1 when it is released...
Comment 9 Michail Vourlakos 2018-07-24 19:39:42 UTC
Git commit 620680e5d3693c12f25429b029d40e169d005c90 by Michail Vourlakos.
Committed on 24/07/2018 at 19:30.
Pushed by mvourlakos into branch 'v0.8'.

IMPORTANT: Update multi-screen codepage!!!

--after v0.8 release many issues with multi-architecture
were identified. An alternative approach was needed
in order for Latte to get a more user-predictable state.
In new approach:
--onPrimary docks have always higher value
and should be shown, this is also like how plasma is
moving its panels.
--explicit docks are removed if their edge in their screen
is occupied by an onPrimary dock
--be stupid smart in order to check if docks contain
tasks and try to not remove them based on screen-changes
is removed! Over-Complicated code that doesnt help
in maintainability...

one of the issues was reported at following bug report...
FIXED-IN: 0.8.1

M  +10   -2    app/dock/dockview.cpp
M  +223  -81   app/layout.cpp
M  +3    -0    app/layout.h
M  +2    -2    app/layoutmanager.cpp
M  +15   -0    app/screenpool.cpp
M  +1    -0    app/screenpool.h

https://commits.kde.org/latte-dock/620680e5d3693c12f25429b029d40e169d005c90