hyprland/workspace: Use name instead of id for activate

This commit is contained in:
cameron 2025-07-24 15:40:54 +10:00
parent db77c71c21
commit f90bef2d99
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ void HyprlandWorkspace::clearUrgent() {
}
void HyprlandWorkspace::activate() {
this->ipc->dispatch(QString("workspace %1").arg(this->bId.value()));
this->ipc->dispatch(QString("workspace %1").arg(this->bName.value()));
}
} // namespace qs::hyprland::ipc

View file

@ -54,7 +54,7 @@ public:
///
/// > [!NOTE] This is equivalent to running
/// > ```qml
/// > HyprlandIpc.dispatch(`workspace ${workspace.id}`);
/// > HyprlandIpc.dispatch(`workspace ${workspace.name}`);
/// > ```
Q_INVOKABLE void activate();