diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-02-16 16:54:37 +0200 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-02-16 19:05:56 +0000 |
commit | 80042ded1abb7dc9d55890b280b27ebc780217be (patch) | |
tree | e4eed32319a5fe42e047b391a97f234f0867fd68 /src/client/qwaylandnativeinterface.cpp | |
parent | 2d0c80018e6da8193a6c5bd5d764da509e16ab46 (diff) |
Add a integration hook to get the wayland queue used by the QPA plugin
This comes handy for clients directly using raw wayland objects.
Change-Id: Ie526ac7b25a6c6a34ce61699103e612616bffbb8
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 c4878e540..892177345 100644 --- a/src/client/qwaylandnativeinterface.cpp +++ b/src/client/qwaylandnativeinterface.cpp @@ -66,6 +66,8 @@ void *QWaylandNativeInterface::nativeResourceForIntegration(const QByteArray &re if (lowerCaseResource == "display" || lowerCaseResource == "wl_display" || lowerCaseResource == "nativedisplay") return m_integration->display()->wl_display(); + if (lowerCaseResource == "wl_event_queue") + return m_integration->display()->wl_event_queue(); if (lowerCaseResource == "compositor") return const_cast<wl_compositor *>(m_integration->display()->wl_compositor()); if (lowerCaseResource == "server_buffer_integration") |