From 274022dad45599223d97695346b7babc3a3c5b50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20R=C3=B8dal?= Date: Mon, 11 Apr 2011 13:44:49 +0200 Subject: [PATCH] Make sure the global listener gets registered even when using drm. --- src/plugins/platforms/wayland/qwaylanddisplay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/wayland/qwaylanddisplay.cpp b/src/plugins/platforms/wayland/qwaylanddisplay.cpp index e2bfaa2..a6fdd46 100644 --- a/src/plugins/platforms/wayland/qwaylanddisplay.cpp +++ b/src/plugins/platforms/wayland/qwaylanddisplay.cpp @@ -120,6 +120,9 @@ QWaylandDisplay::QWaylandDisplay(void) qErrnoWarning(errno, "Failed to create display"); qFatal("No wayland connection available."); } + + wl_display_add_global_listener(mDisplay, QWaylandDisplay::displayHandleGlobal, this); + #ifdef QT_WAYLAND_GL_SUPPORT mEglIntegration = QWaylandGLIntegration::createGLIntegration(this); #endif @@ -132,7 +135,6 @@ QWaylandDisplay::QWaylandDisplay(void) connect(QAbstractEventDispatcher::instance(), SIGNAL(aboutToBlock()), this, SLOT(flushRequests())); - wl_display_add_global_listener(mDisplay, QWaylandDisplay::displayHandleGlobal, this); mFd = wl_display_get_fd(mDisplay, sourceUpdate, this); mReadNotifier = new QSocketNotifier(mFd, QSocketNotifier::Read, this); -- 2.7.4