fix(hyprland/workspaces): handle workspace ID changes

This commit is contained in:
Guilherme Daher
2026-08-12 16:09:48 -03:00
parent 084d87401d
commit 5ef2da41be
3 changed files with 34 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@ class Workspace {
void setUrgent(bool value = true) { m_isUrgent = value; };
void setVisible(bool value = true) { m_isVisible = value; };
void setWindows(uint value) { m_windows = value; };
void setId(int value) { m_id = value; };
void setName(std::string const& value) { m_name = value; };
void setOutput(std::string const& value) { m_output = value; };
bool containsWindow(WindowAddress const& addr) const {
+1
View File
@@ -108,6 +108,7 @@ class Workspaces : public AModule, public EventHandler {
Json::Value const& clientsData = Json::Value::nullRef);
void onWorkspaceMoved(std::string const& payload);
void onWorkspaceRenamed(std::string const& payload);
void onWorkspaceIdChanged(std::string const& payload);
static std::optional<int> parseWorkspaceId(std::string const& workspaceIdStr);
// monitor events