Remove code duplication

Summary: setGlobalPos sets these, we don't need to call it twice

Test Plan: Looked at setGlobalPos

Reviewers: #plasma, graesslin

Reviewed By: #plasma, graesslin

Subscribers: plasma-devel, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D8581
This commit is contained in:
David Edmundson 2017-11-01 15:45:12 +00:00
parent e7b183f886
commit ca6459145c

View file

@ -706,8 +706,6 @@ bool DrmOutput::commitChanges()
}
if (m_changeset->positionChanged()) {
qCDebug(KWIN_DRM) << "Server setting position: " << m_changeset->position();
m_waylandOutput->setGlobalPosition(m_changeset->position());
m_waylandOutputDevice->setGlobalPosition(m_changeset->position());
setGlobalPos(m_changeset->position());
// may just work already!
}