summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-09-11 20:48:22 +0200
committerGitHub <noreply@github.com>2022-09-11 20:48:22 +0200
commitb49d7007b57a4890d63262fa031cf63ee09e0ed0 (patch)
treed0dcb9ce09b8d56e4e064b2a430ab4591f27cbe8 /src/debug/HyprCtl.hpp
parent864e227f5d2004332442b5b08be8725326e300ff (diff)
parent82aa78916ddfcd2d23720083bd7cea2502a0feca (diff)
Merge pull request #659 from hyprwm/hyprctl-nopoll
hyprctl-nopoll
Diffstat (limited to 'src/debug/HyprCtl.hpp')
-rw-r--r--src/debug/HyprCtl.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp
index b717f50f..0dd4f741 100644
--- a/src/debug/HyprCtl.hpp
+++ b/src/debug/HyprCtl.hpp
@@ -6,7 +6,6 @@
namespace HyprCtl {
void startHyprCtlSocket();
- void tickHyprCtl();
// very simple thread-safe request method
inline bool requestMade = false;
@@ -15,7 +14,9 @@ namespace HyprCtl {
inline std::ifstream requestStream;
- inline std::thread tThread;
+ inline wl_event_source* hyprCtlTickSource = nullptr;
+
+ inline int iSocketFD = -1;
enum eHyprCtlOutputFormat {
FORMAT_NORMAL = 0,