bugfix(hyprland/workspaces): Special workspaces being opened on different monitors now updates correctly

Previously, if you were to open a special workspace on a different
monitor than it was created, the display for workspaces wouldn't update
properly\nI've implemented a somewhat hacky solution by just reloading
hyprland everytime onSpecialWorkspaceActivated is called.
This commit is contained in:
Aaron Gerbert
2025-12-09 23:45:45 -05:00
parent 55e1c4c4a9
commit a28fe0a9c4
+1
View File
@@ -366,6 +366,7 @@ void Workspaces::onWorkspaceActivated(std::string const &payload) {
void Workspaces::onSpecialWorkspaceActivated(std::string const &payload) {
std::string name(begin(payload), begin(payload) + payload.find_first_of(','));
m_activeSpecialWorkspaceName = (!name.starts_with("special:") ? name : name.substr(8));
m_ipc.getSocket1JsonReply("reload");
}
void Workspaces::onWorkspaceDestroyed(std::string const &payload) {