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 authored and outfoxxed committed 2025-11-29 22:06:37 -08:00
1 parent e9bad67619
commit d24e8e9736
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ set shell id.
- Fixed escape sequence handling in desktop entries.
- Fixed volumes not initializing if a pipewire device was already loaded before its node.
- Fixed hyprland active toplevel not resetting after window closes.
- Fixed hyprland ipc window names and titles being reversed.
## Packaging Changes
+2 -2
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) {