Skip to content

Commit 0a04d6e

Browse files
committed
fix(hyprland): support additional v2 events
1 parent 17cee0d commit 0a04d6e

File tree

2 files changed

+122
-122
lines changed

2 files changed

+122
-122
lines changed

include/modules/hyprland/workspaces.hpp

+7
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class Workspaces : public AModule, public EventHandler {
7878
Json::Value const& clientsData = Json::Value::nullRef);
7979
void onWorkspaceMoved(std::string const& payload);
8080
void onWorkspaceRenamed(std::string const& payload);
81+
static int parseWorkspaceId(std::string const& workspaceIdStr);
8182

8283
// monitor events
8384
void onMonitorFocused(std::string const& payload);
@@ -93,6 +94,12 @@ class Workspaces : public AModule, public EventHandler {
9394

9495
int windowRewritePriorityFunction(std::string const& window_rule);
9596

97+
// event payload management
98+
template<typename... Args>
99+
static std::string makePayload(Args const&... args);
100+
static std::pair<std::string, std::string> splitDoublePayload(std::string const& payload);
101+
static std::tuple<std::string, std::string, std::string> splitTriplePayload(std::string const& payload);
102+
96103
// Update methods
97104
void doUpdate();
98105
void removeWorkspacesToRemove();

0 commit comments

Comments
 (0)