[wayland] Properly set position of OutputInterface on creation
Before all outputs were positioned at 0/0 in a multi-nested window setup.
This commit is contained in:
parent
56bd1e7194
commit
8b4d1a2f3f
1 changed files with 4 additions and 2 deletions
|
@ -265,8 +265,10 @@ void WaylandServer::initOutputs()
|
|||
Q_ASSERT(s);
|
||||
for (int i = 0; i < s->count(); ++i) {
|
||||
OutputInterface *output = m_display->createOutput(m_display);
|
||||
output->setPhysicalSize(s->size(i) / 3.8);
|
||||
output->addMode(s->size(i));
|
||||
const QRect &geo = s->geometry(i);
|
||||
output->setGlobalPosition(geo.topLeft());
|
||||
output->setPhysicalSize(geo.size() / 3.8);
|
||||
output->addMode(geo.size());
|
||||
output->create();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue