connector: consider UNKNOWNCONNECTION as connected
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 13 Nov 2015 12:20:27 +0000 (14:20 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 13 Nov 2015 12:20:27 +0000 (14:20 +0200)
libkms++/connector.cpp

index 6ab590e2476a3cc9a3473085c6e0608e3b4f09b6..e507c9e91cb159c17683882f0c798657d44cda58 100644 (file)
@@ -116,7 +116,8 @@ Videomode Connector::get_mode(const string& mode) const
 
 bool Connector::connected() const
 {
-       return m_priv->drm_connector->connection == DRM_MODE_CONNECTED;
+       return m_priv->drm_connector->connection == DRM_MODE_CONNECTED ||
+                       m_priv->drm_connector->connection == DRM_MODE_UNKNOWNCONNECTION;
 }
 
 vector<Crtc*> Connector::get_possible_crtcs() const