From cfdb5926d3c98bf0d759acdf2a4f1fd738f39b9c Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Tue, 2 Oct 2018 13:54:59 +0200 Subject: Client: Remove failing assert on compositors without wl_data_device Some compositors don't advertise wl_data_device_manager support, and the client has no control over this, so the assertion doesn't make sense. Returning nullptr in that case should be fine. Change-Id: If0b145326d074ea4ebf8f5a12654962d56012a2d Reviewed-by: Paul Olav Tvete --- src/client/qwaylandinputdevice.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp index b4b7c4ef3..37c6fbe9f 100644 --- a/src/client/qwaylandinputdevice.cpp +++ b/src/client/qwaylandinputdevice.cpp @@ -297,7 +297,6 @@ void QWaylandInputDevice::setDataDevice(QWaylandDataDevice *device) QWaylandDataDevice *QWaylandInputDevice::dataDevice() const { - Q_ASSERT(mDataDevice); return mDataDevice; } #endif -- cgit v1.2.3