summaryrefslogtreecommitdiffstats
path: root/src/window-lib
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@qt.io>2023-10-09 09:45:57 +0200
committerBernd Weimer <bernd.weimer@qt.io>2023-10-09 16:16:03 +0200
commit0797c56082480b5ee894db97130b69b9439577e3 (patch)
treefcbfe04c22bb55b1d8410f9cb9d8b6812cc248e4 /src/window-lib
parent282c89a686480316e76aca293459cf1217063559 (diff)
Fix adding wayland extensions
Wayland extension objects should be created within their component context to allow "ComponentBehavior: Bound", which will be the default in the future. Change-Id: Ib229c9a9c0fd006c88d939140ad364bd902f1978 Pick-to: 6.6 6.5 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/window-lib')
-rw-r--r--src/window-lib/windowmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window-lib/windowmanager.cpp b/src/window-lib/windowmanager.cpp
index 299b2369..5911da01 100644
--- a/src/window-lib/windowmanager.cpp
+++ b/src/window-lib/windowmanager.cpp
@@ -584,7 +584,7 @@ QObject *WindowManager::addExtension(QQmlComponent *component) const
return nullptr;
}
- QObject *obj = component->beginCreate(qmlContext(this));
+ QObject *obj = component->beginCreate(qmlContext(component));
auto extension = qobject_cast<QWaylandCompositorExtension*>(obj);
if (extension)