diff --git a/wayland_backend.cpp b/wayland_backend.cpp index 7c2d57b24a..b341773e60 100644 --- a/wayland_backend.cpp +++ b/wayland_backend.cpp @@ -726,6 +726,11 @@ WaylandBackend *WaylandBackend::create(QObject *parent) return NULL; } s_self = new WaylandBackend(parent); + // check whether it has a display + if (!s_self->display()) { + delete s_self; + s_self = nullptr; + } return s_self; }