diff options
-rw-r--r-- | libkms++/connector.cpp | 2 | ||||
-rw-r--r-- | libkms++/connector.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libkms++/connector.cpp b/libkms++/connector.cpp index d26d7e1..b045b8b 100644 --- a/libkms++/connector.cpp +++ b/libkms++/connector.cpp @@ -101,7 +101,7 @@ Videomode Connector::get_mode(const char *mode) const throw invalid_argument((sMode + ": mode not found").c_str()); } -bool Connector::connected() +bool Connector::connected() const { return m_priv->drm_connector->connection == DRM_MODE_CONNECTED; } diff --git a/libkms++/connector.h b/libkms++/connector.h index b29c071..198a6dd 100644 --- a/libkms++/connector.h +++ b/libkms++/connector.h @@ -39,7 +39,7 @@ public: Crtc* get_current_crtc() const { return m_current_crtc; } std::vector<Crtc*> get_possible_crtcs() const; - bool connected(); + bool connected() const; private: ConnectorPriv* m_priv; |