From 752de2d888c3748a13e199d64ccefc1b84f6d181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 15 Oct 2014 12:37:20 +0200 Subject: [PATCH] Use Registry::interfacesAnnounced signal for WaylandBackend::createSurface We are interested in going into createSurface exactly once when everything is ready. This is something we now know due to the new signal in Registry. So instead of multiple entry points there is just one. --- wayland_backend.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wayland_backend.cpp b/wayland_backend.cpp index 37b84ba376..b184d3b0ae 100644 --- a/wayland_backend.cpp +++ b/wayland_backend.cpp @@ -358,7 +358,6 @@ WaylandBackend::WaylandBackend(QObject *parent) connect(m_registry, &Registry::shellAnnounced, this, [this](quint32 name) { m_shell->setup(m_registry->bindShell(name, 1)); - createSurface(); } ); connect(m_registry, &Registry::outputAnnounced, this, @@ -382,9 +381,9 @@ WaylandBackend::WaylandBackend(QObject *parent) connect(m_registry, &Registry::fullscreenShellAnnounced, this, [this](quint32 name, quint32 version) { m_fullscreenShell->setup(m_registry->bindFullscreenShell(name, version)); - createSurface(); } ); + connect(m_registry, &Registry::interfacesAnnounced, this, &WaylandBackend::createSurface); initConnection(); }