quick commit

This commit is contained in:
2025-12-09 00:25:28 +01:00
parent 2570445aef
commit cd3a9e6503
2 changed files with 11 additions and 20 deletions

View File

@@ -10,17 +10,14 @@ class HyprlandService
HyprlandService();
~HyprlandService();
// Setup the connection
void start();
// Signal that emits (EventName, EventData)
// Example: emits ("workspace", "1")
sigc::signal<void(std::string, std::string)> on_event;
void start();
void on_hyprland_event(std::string event, std::string data);
private:
int m_fd = -1; // File descriptor for the socket
std::string m_buffer; // Buffer to handle partial socket reads
int m_fd = -1;
std::string m_buffer;
bool on_socket_read(Glib::IOCondition condition);
void parse_message(const std::string &line);