diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-25 18:24:52 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-25 18:24:52 +1000 |
| commit | d3fac6805f31894c277dc620314cac9cf8c6561b (patch) | |
| tree | f76a1e32078acadd777453b96660c6118fda59f3 /plugin/src/Caelestia/Internal/hyprextras.hpp | |
| parent | plugin/appdb: delete when backing entries deleted (diff) | |
| download | caelestia-shell-d3fac6805f31894c277dc620314cac9cf8c6561b.tar.gz caelestia-shell-d3fac6805f31894c277dc620314cac9cf8c6561b.tar.bz2 caelestia-shell-d3fac6805f31894c277dc620314cac9cf8c6561b.zip | |
plugin/hypr: fix devices + better error handling
Also fix lock indicators
Diffstat (limited to 'plugin/src/Caelestia/Internal/hyprextras.hpp')
| -rw-r--r-- | plugin/src/Caelestia/Internal/hyprextras.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |