Wait to get wl_output's events before creating surfaces
Change-Id: I2eb4b40a4b8b1de7990d06b57b0d7a7b04ee9657 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
parent
fb46141b75
commit
ded0d67c22
@ -203,6 +203,8 @@ void QWaylandDisplay::registry_global(uint32_t id, const QString &interface, uin
|
||||
|
||||
if (interface == QStringLiteral("wl_output")) {
|
||||
mScreens.append(new QWaylandScreen(this, id));
|
||||
// We need to get the output events before creating surfaces
|
||||
forceRoundTrip();
|
||||
} else if (interface == QStringLiteral("wl_compositor")) {
|
||||
mCompositor.init(registry, id);
|
||||
} else if (interface == QStringLiteral("wl_shm")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user