summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-11-13 14:20:27 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-11-13 14:20:27 +0200
commit6642f7c22409f470d195ade8951295a4a6762373 (patch)
treec8ffefd2ba712d45fa222e3df77cc40f2d3ef7fe
parentdc27a456ddfa9020097c2e5faf8ec47385f4f920 (diff)
connector: consider UNKNOWNCONNECTION as connected
-rw-r--r--libkms++/connector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libkms++/connector.cpp b/libkms++/connector.cpp
index 6ab590e..e507c9e 100644
--- a/libkms++/connector.cpp
+++ b/libkms++/connector.cpp
@@ -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