summaryrefslogtreecommitdiff
path: root/src/client/qwaylandnativeinterface.cpp
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-05 13:38:53 +0200
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-05 14:59:42 +0100
commit7142ca521df1daa251f3f4cfb97a5c76928df2da (patch)
treecec10d6240b56ba8c39710d231a308894aee3f51 /src/client/qwaylandnativeinterface.cpp
parentface2023e41723e48f044977ebf76577d2313992 (diff)
downloadqtwayland-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.cpp2
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;
}