Bug 366395 - panel size doesn't adjust to screen changes correctly
Summary: panel size doesn't adjust to screen changes correctly
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-multiscreen (show other bugs)
Version: master
Platform: Debian unstable Linux
: NOR normal
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2016-08-04 03:09 UTC by Sebastian Kügler
Modified: 2016-08-05 16:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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