From 82aa78916ddfcd2d23720083bd7cea2502a0feca Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 10 Sep 2022 21:21:28 +0200 Subject: hyprctl-nopoll --- src/debug/HyprCtl.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/debug/HyprCtl.hpp') 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, -- cgit v1.2.3