summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-21 22:00:03 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-21 22:00:03 +0200
commit883d389bc283ac6b29b303a94f063e5575f8416f (patch)
treee4e454db877af47c649d3747b667099327dde95d /src/debug/HyprCtl.hpp
parent304b93a4f609054bb453f89eb38894809a888b38 (diff)
Make hyprctl thread safe
Diffstat (limited to 'src/debug/HyprCtl.hpp')
-rw-r--r--src/debug/HyprCtl.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp
index 1efe468f..3da4aa07 100644
--- a/src/debug/HyprCtl.hpp
+++ b/src/debug/HyprCtl.hpp
@@ -8,5 +8,10 @@ namespace HyprCtl {
void startHyprCtlSocket();
void tickHyprCtl();
+ // very simple thread-safe request method
+ inline bool requestMade = false;
+ inline bool requestReady = false;
+ inline std::string request = "";
+
inline std::ifstream requestStream;
}; \ No newline at end of file