Skip to content

Commit 2b7caed

Browse files
author
nemalex
committed
fix(hyprland/ipc): swap windowTitle and windowClass in openwindow handler
The openwindow event format is ADDRESS,WORKSPACE,CLASS,TITLE but the handler was parsing args.at(2) as title and args.at(3) as class, which is reversed. This caused windows to display their class name instead of their actual title when the openwindow event arrived after windowtitlev2, since updateInitial would overwrite the correct title with the class.
1 parent e9bad67 commit 2b7caed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wayland/hyprland/ipc/connection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) {
442442
if (!ok) return;
443443

444444
auto workspaceName = QString::fromUtf8(args.at(1));
445-
auto windowTitle = QString::fromUtf8(args.at(2));
446-
auto windowClass = QString::fromUtf8(args.at(3));
445+
auto windowClass = QString::fromUtf8(args.at(2));
446+
auto windowTitle = QString::fromUtf8(args.at(3));
447447

448448
auto* workspace = this->findWorkspaceByName(workspaceName, false);
449449
if (!workspace) {

0 commit comments

Comments
 (0)