From 8b4d1a2f3f6449ace178b2becf9f947a56142370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 25 Nov 2015 13:01:36 +0100 Subject: [PATCH] [wayland] Properly set position of OutputInterface on creation Before all outputs were positioned at 0/0 in a multi-nested window setup. --- wayland_server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wayland_server.cpp b/wayland_server.cpp index b026014188..8bc472c3e0 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -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(); } }