Skip to content

Commit f90bef2

Browse files
committed
hyprland/workspace: Use name instead of id for activate
1 parent db77c71 commit f90bef2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wayland/hyprland/ipc/workspace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void HyprlandWorkspace::clearUrgent() {
151151
}
152152

153153
void HyprlandWorkspace::activate() {
154-
this->ipc->dispatch(QString("workspace %1").arg(this->bId.value()));
154+
this->ipc->dispatch(QString("workspace %1").arg(this->bName.value()));
155155
}
156156

157157
} // namespace qs::hyprland::ipc

src/wayland/hyprland/ipc/workspace.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class HyprlandWorkspace: public QObject {
5454
///
5555
/// > [!NOTE] This is equivalent to running
5656
/// > ```qml
57-
/// > HyprlandIpc.dispatch(`workspace ${workspace.id}`);
57+
/// > HyprlandIpc.dispatch(`workspace ${workspace.name}`);
5858
/// > ```
5959
Q_INVOKABLE void activate();
6060

0 commit comments

Comments
 (0)