Bug 366395

Summary: panel size doesn't adjust to screen changes correctly
Product: [Plasma] plasmashell Reporter: Sebastian Kügler <sebas>
Component: generic-multiscreenAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal 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 03:09:47 UTC
Situation: I have my panel on the larger laptop panel, there's a lower res external monitor.

When I switch the primary to be the external monitor, the panel moves over to it, but it remains at the size of its original location, so it gets cut off.

I'd expect the panel to adjust its width based on the screen it's on: if it's maximized, it should probably stay that way (so resize horizontally), if not, perhaps resize it based on it's relative size (for example 3/2 of screen width)?

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 366394
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