workspace: don't touch output configs on Xorg

It sets some output properties that don't match what Xorg knows about the outputs,
which may cause problems

CCBUG: 477268
This commit is contained in:
Xaver Hugl 2024-04-29 17:08:03 +02:00
parent aabadcee6d
commit b976c274fd

View file

@ -248,6 +248,7 @@ void Workspace::init()
connect(this, &Workspace::windowRemoved, m_placementTracker.get(), &PlacementTracker::remove);
m_placementTracker->init(getPlacementTrackerHash());
if (waylandServer()) {
const auto applySensorChanges = [this]() {
m_orientationSensor->setEnabled(m_outputConfigStore->isAutoRotateActive(kwinApp()->outputBackend()->outputs(), kwinApp()->tabletModeManager()->effectiveTabletMode()));
const auto opt = m_outputConfigStore->queryConfig(kwinApp()->outputBackend()->outputs(), m_lidSwitchTracker->isLidClosed(), m_orientationSensor->reading(), kwinApp()->tabletModeManager()->effectiveTabletMode());
@ -261,6 +262,7 @@ void Workspace::init()
connect(kwinApp()->tabletModeManager(), &TabletModeManager::tabletModeChanged, this, applySensorChanges);
m_orientationSensor->setEnabled(m_outputConfigStore->isAutoRotateActive(kwinApp()->outputBackend()->outputs(), kwinApp()->tabletModeManager()->effectiveTabletMode()));
}
}
QString Workspace::getPlacementTrackerHash()
{