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 <paul.tvete@qt.io>
This commit is contained in:
parent
5efef3d981
commit
f086d96035
@ -297,7 +297,6 @@ void QWaylandInputDevice::setDataDevice(QWaylandDataDevice *device)
|
||||
|
||||
QWaylandDataDevice *QWaylandInputDevice::dataDevice() const
|
||||
{
|
||||
Q_ASSERT(mDataDevice);
|
||||
return mDataDevice;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user