Initialise XdgOutput properties on creation
Summary: initWaylandOutput can be called before or after all properites are set. If it's called after, we need to still have xdgOuput set correctly. Test Plan: Simplified Aleix's patch that avoids a no-op setScale call Now it works. Reviewers: #kwin, apol Reviewed By: apol Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D20800
This commit is contained in:
parent
32863aac9b
commit
c4ab885616
1 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,9 @@ void AbstractOutput::createXdgOutput()
|
|||
return;
|
||||
}
|
||||
m_xdgOutput = waylandServer()->xdgOutputManager()->createXdgOutput(m_waylandOutput, m_waylandOutput);
|
||||
m_xdgOutput->setLogicalSize(pixelSize() / scale());
|
||||
m_xdgOutput->setLogicalPosition(m_globalPos);
|
||||
m_xdgOutput->done();
|
||||
}
|
||||
|
||||
void AbstractOutput::initWaylandOutput()
|
||||
|
|
Loading…
Reference in a new issue