diff --git a/plugins/platforms/drm/drm_object.cpp b/plugins/platforms/drm/drm_object.cpp index 2aff328ff3..5a5793b5f4 100644 --- a/plugins/platforms/drm/drm_object.cpp +++ b/plugins/platforms/drm/drm_object.cpp @@ -184,3 +184,8 @@ void DrmObject::Property::initEnumMap(drmModePropertyRes *prop) } } + +QDebug& operator<<(QDebug& s, const KWin::DrmObject* obj) +{ + return s.nospace() << "DrmObject(" << obj->id() << ", output:" << obj->output() << ", fd: "<< obj->fd() << ')'; +} diff --git a/plugins/platforms/drm/drm_object.h b/plugins/platforms/drm/drm_object.h index 80084c516a..c3eb387537 100644 --- a/plugins/platforms/drm/drm_object.h +++ b/plugins/platforms/drm/drm_object.h @@ -149,3 +149,4 @@ private: } +QDebug& operator<<(QDebug& stream, const KWin::DrmObject*);