Bug 366394

Summary: single panel doesn't adjust to primary screen correctly
Product: [Plasma] plasmashell Reporter: Sebastian Kügler <sebas>
Component: generic-multiscreenAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: major CC: plasma-bugs-null
Priority: NOR Keywords: multiscreen
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sebastian Kügler 2016-08-04 02:28:40 UTC
Situation: I connect an external monitor to my laptop, and wish to use it as primary screen, laptop panel stays on.

Expected: the content (panel, desktop containment) moves to the external screen. When unplugging, it moves back to the laptop display.

What happens is that the desktop containment moves, but the panel gets lost. 



Reproducible: Always
Comment 1 Marco Martin 2016-08-05 16:33:28 UTC
Git commit 7dec22733fc3fa75243f8c318a21ba7c77f00ef8 by Marco Martin.
Committed on 05/08/2016 at 16:33.
Pushed by mart into branch 'master'.

less bookeeping of screen ids

don't index m_desktopContainments by screen id
that will change and will break.
also, in createcontainmentForActivity, don't return one
that is already taking another desktop view
Related: bug 366395
reviewed-by: Sebastian Kügler <sebas@kde.org>

M  +5    -4    shell/screenpool.cpp
M  +27   -21   shell/shellcorona.cpp
M  +1    -1    shell/shellcorona.h

http://commits.kde.org/plasma-workspace/7dec22733fc3fa75243f8c318a21ba7c77f00ef8