hyprctl-nopoll

This commit is contained in:
vaxerski 2022-09-10 21:21:28 +02:00
parent f024d7114f
commit 82aa78916d
5 changed files with 34 additions and 96 deletions

View file

@ -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,