From d3fac6805f31894c277dc620314cac9cf8c6561b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 25 Sep 2025 18:24:52 +1000 Subject: plugin/hypr: fix devices + better error handling Also fix lock indicators --- plugin/src/Caelestia/Internal/hyprextras.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/src/Caelestia/Internal/hyprextras.hpp') diff --git a/plugin/src/Caelestia/Internal/hyprextras.hpp b/plugin/src/Caelestia/Internal/hyprextras.hpp index f1863ed..9f9e1ad 100644 --- a/plugin/src/Caelestia/Internal/hyprextras.hpp +++ b/plugin/src/Caelestia/Internal/hyprextras.hpp @@ -36,6 +36,7 @@ private: QString m_requestSocket; QString m_eventSocket; QLocalSocket* m_socket; + bool m_socketValid; QVariantHash m_options; HyprDevices* const m_devices; @@ -43,6 +44,8 @@ private: SocketPtr m_optionsRefresh; SocketPtr m_devicesRefresh; + void socketError(QLocalSocket::LocalSocketError error) const; + void socketStateChanged(QLocalSocket::LocalSocketState state); void readEvent(); void handleEvent(const QString& event); -- cgit v1.2.3-freya