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:
parent
e9bad67619
commit
2b7caed8a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue