fix: hyprland named persistent workspaces
allowed persistent workspaces to be defined with names instead of just id's
This commit is contained in:
parent
f409f53131
commit
9ef6dc7380
|
|
@ -253,10 +253,8 @@ void Workspaces::loadPersistentWorkspacesFromConfig(Json::Value const &clientsJs
|
||||||
// value is an array => create defined workspaces for this monitor
|
// value is an array => create defined workspaces for this monitor
|
||||||
if (canCreate) {
|
if (canCreate) {
|
||||||
for (const Json::Value &workspace : value) {
|
for (const Json::Value &workspace : value) {
|
||||||
if (workspace.isInt()) {
|
|
||||||
spdlog::debug("Creating workspace {} on monitor {}", workspace, currentMonitor);
|
spdlog::debug("Creating workspace {} on monitor {}", workspace, currentMonitor);
|
||||||
persistentWorkspacesToCreate.emplace_back(std::to_string(workspace.asInt()));
|
persistentWorkspacesToCreate.emplace_back(workspace.asString());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// key is the workspace and value is array of monitors to create on
|
// key is the workspace and value is array of monitors to create on
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue