Merge pull request #2605 from Syndelis/fix/hyprland-persistent-workspaces-disappear-when-empty

This commit is contained in:
Alexis Rouillard 2023-10-24 08:31:11 +02:00 committed by GitHub
commit a459d8a9b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -487,6 +487,9 @@ void Workspaces::create_workspace(Json::Value const &workspace_data,
});
if (workspace != workspaces_.end()) {
if (workspace_data["persistent"].asBool() and !(*workspace)->is_persistent()) {
(*workspace)->set_persistent();
}
return;
}