Skip to content

Commit a459d8a

Browse files
authored
Merge pull request #2605 from Syndelis/fix/hyprland-persistent-workspaces-disappear-when-empty
2 parents f2085fc + 4aee597 commit a459d8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/hyprland/workspaces.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ void Workspaces::create_workspace(Json::Value const &workspace_data,
487487
});
488488

489489
if (workspace != workspaces_.end()) {
490+
if (workspace_data["persistent"].asBool() and !(*workspace)->is_persistent()) {
491+
(*workspace)->set_persistent();
492+
}
490493
return;
491494
}
492495

0 commit comments

Comments
 (0)