Don't rescale every output every time outputs change
Summary: Every time a display gets connected/disconnected, every output will be reinitialized. We don't really need to reset the scaling to 1 every time we don't know, especially since the setting has been set voluntarily. Test Plan: When I disconnect the external display, my laptop doesn't fallback to scale=1. Reviewers: #plasma, apol Reviewed By: apol Subscribers: davidedmundson, ngraham, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D20521
This commit is contained in:
parent
c4ab885616
commit
d3275784a8
1 changed files with 2 additions and 1 deletions
|
@ -523,6 +523,7 @@ void DrmBackend::readOutputsConfiguration()
|
|||
const auto outputConfig = configGroup.group((*it)->uuid());
|
||||
(*it)->setGlobalPos(outputConfig.readEntry<QPoint>("Position", pos));
|
||||
// TODO: add mode
|
||||
if (outputConfig.hasKey("Scale"))
|
||||
(*it)->setScale(outputConfig.readEntry("Scale", 1.0));
|
||||
pos.setX(pos.x() + (*it)->geometry().width());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue