forked from quickshell/quickshell
hyprland/workspace: Use name instead of id for activate
This commit is contained in:
parent
db77c71c21
commit
f90bef2d99
2 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ void HyprlandWorkspace::clearUrgent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HyprlandWorkspace::activate() {
|
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
|
} // namespace qs::hyprland::ipc
|
||||||
|
|
|
@ -54,7 +54,7 @@ public:
|
||||||
///
|
///
|
||||||
/// > [!NOTE] This is equivalent to running
|
/// > [!NOTE] This is equivalent to running
|
||||||
/// > ```qml
|
/// > ```qml
|
||||||
/// > HyprlandIpc.dispatch(`workspace ${workspace.id}`);
|
/// > HyprlandIpc.dispatch(`workspace ${workspace.name}`);
|
||||||
/// > ```
|
/// > ```
|
||||||
Q_INVOKABLE void activate();
|
Q_INVOKABLE void activate();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue