summaryrefslogtreecommitdiff
path: root/kms++/src/connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kms++/src/connector.cpp')
-rw-r--r--kms++/src/connector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kms++/src/connector.cpp b/kms++/src/connector.cpp
index 72f8777..a408619 100644
--- a/kms++/src/connector.cpp
+++ b/kms++/src/connector.cpp
@@ -120,7 +120,8 @@ void Connector::restore_mode()
Videomode Connector::get_default_mode() const
{
if (m_priv->drm_connector->count_modes == 0)
- throw invalid_argument("no modes available\n");
+ return Videomode();
+
drmModeModeInfo drmmode = m_priv->drm_connector->modes[0];
return drm_mode_to_video_mode(drmmode);