diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-01-05 13:38:53 +0200 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-01-05 14:59:42 +0100 |
commit | 7142ca521df1daa251f3f4cfb97a5c76928df2da (patch) | |
tree | cec10d6240b56ba8c39710d231a308894aee3f51 /src/client/qwaylandnativeinterface.cpp | |
parent | face2023e41723e48f044977ebf76577d2313992 (diff) | |
download | qtwayland-7142ca521df1daa251f3f4cfb97a5c76928df2da.tar.gz |
Allow retrieving the egl display for a QWindow on wayland
This allows a compositor running with the wayland qpa inside another
compositor to provide EGL to its clients.
Change-Id: I308fb909c8168955148be152bf314a53c0e5ca43
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/client/qwaylandnativeinterface.cpp')
-rw-r--r-- | src/client/qwaylandnativeinterface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qwaylandnativeinterface.cpp b/src/client/qwaylandnativeinterface.cpp index fca176ac..b4bb0604 100644 --- a/src/client/qwaylandnativeinterface.cpp +++ b/src/client/qwaylandnativeinterface.cpp @@ -86,6 +86,8 @@ void *QWaylandNativeInterface::nativeResourceForWindow(const QByteArray &resourc if (lowerCaseResource == "surface") { return ((QWaylandWindow *) window->handle())->object(); } + if (lowerCaseResource == "egldisplay" && m_integration->clientBufferIntegration()) + return m_integration->clientBufferIntegration()->nativeResource(QWaylandClientBufferIntegration::EglDisplay); return NULL; } |