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.
This commit is contained in:
nemalex 2025-11-26 13:51:58 +01:00
parent e9bad67619
commit 2b7caed8a6

View file

@ -442,8 +442,8 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) {
if (!ok) return;
auto workspaceName = QString::fromUtf8(args.at(1));
auto windowTitle = QString::fromUtf8(args.at(2));
auto windowClass = QString::fromUtf8(args.at(3));
auto windowClass = QString::fromUtf8(args.at(2));
auto windowTitle = QString::fromUtf8(args.at(3));
auto* workspace = this->findWorkspaceByName(workspaceName, false);
if (!workspace) {