[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:
Martin Gräßlin 2015-11-25 13:01:36 +01:00
parent 56bd1e7194
commit 8b4d1a2f3f

View file

@ -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();
}
}