46 #include <QtCore/QDebug> 57 , mWaylandDisplay(waylandDispaly)
59 qDebug() <<
"Using XComposite-EGL";
114 if (strcmp(interface,
"wl_xcomposite") == 0) {
127 integration->
mDisplay = XOpenDisplay(display_name);
131 eglBindAPI(EGL_OPENGL_ES_API);
133 if (!eglInitialize(integration->
mEglDisplay,&major,&minor)) {
134 qFatal(
"Failed to initialize EGL");
EGLDisplay eglDisplay() const
QPointer< QWidget > widget
static void wlDisplayHandleGlobal(struct wl_display *display, uint32_t id, const char *interface, uint32_t version, void *data)
static const struct wl_xcomposite_listener xcomposite_listener
QWaylandDisplay * waylandDisplay() const
Q_CORE_EXPORT void qDebug(const char *,...)
Q_GUI_EXPORT EGLDisplay display()
struct wl_xcomposite * waylandXComposite() const
static void rootInformation(void *data, struct wl_xcomposite *xcomposite, const char *display_name, uint32_t root_window)
~QWaylandXCompositeEGLIntegration()
static const char * data(const QByteArray &arr)
struct wl_xcomposite * mWaylandComposite
Window rootWindow() const
static struct wl_xcomposite * wl_xcomposite_create(struct wl_display *display, uint32_t id, uint32_t version)
QWaylandXCompositeEGLIntegration(QWaylandDisplay *waylandDispaly)
static QWaylandGLIntegration * createGLIntegration(QWaylandDisplay *waylandDisplay)
Q_CORE_EXPORT void qFatal(const char *,...)
QWaylandWindow * createEglWindow(QWidget *widget)
QWaylandDisplay * mWaylandDisplay
static int wl_xcomposite_add_listener(struct wl_xcomposite *wl_xcomposite, const struct wl_xcomposite_listener *listener, void *data)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Display * xDisplay() const
struct wl_display * wl_display() const