From 00a0d843d2ea02740acd6c14fb805ba4c8a4c30b Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Tue, 13 Sep 2016 20:23:05 +0200 Subject: [PATCH] Only bind the extension once Change-Id: I014269a19ca569298df91c2c329193e5ee5ff9c5 Reviewed-by: Pier Luigi Fiorini Reviewed-by: Johan Helsing --- .../platforms/wayland/global/qwaylandclientextension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wayland/global/qwaylandclientextension.cpp b/src/plugins/platforms/wayland/global/qwaylandclientextension.cpp index 4202b333b47..8992e132f03 100644 --- a/src/plugins/platforms/wayland/global/qwaylandclientextension.cpp +++ b/src/plugins/platforms/wayland/global/qwaylandclientextension.cpp @@ -60,7 +60,7 @@ void QWaylandClientExtensionPrivate::handleRegistryGlobal(void *data, ::wl_regis const QString &interface, uint32_t version) { QWaylandClientExtension *extension = static_cast(data); - if (interface == QLatin1String(extension->extensionInterface()->name)) { + if (interface == QLatin1String(extension->extensionInterface()->name) && !extension->d_func()->active) { extension->bind(registry, id, version); extension->d_func()->active = true; emit extension->activeChanged();