From c6b053624cff9f0d3ba8f0db74b778f4295297fc Mon Sep 17 00:00:00 2001 From: Zhang Dingyuan Date: Fri, 12 Jan 2024 15:35:00 +0800 Subject: [PATCH] fix: dock crash send wrong identifier. why two xdgsurface of one program has the same wlr_xdg_surface resource. Issue: https://github.com/linuxdeepin/developer-center/issues/6885 Log: --- src/treeland/quick/protocols/foreigntoplevelmanagerv1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treeland/quick/protocols/foreigntoplevelmanagerv1.cpp b/src/treeland/quick/protocols/foreigntoplevelmanagerv1.cpp index 135b52ff..f0036d3a 100644 --- a/src/treeland/quick/protocols/foreigntoplevelmanagerv1.cpp +++ b/src/treeland/quick/protocols/foreigntoplevelmanagerv1.cpp @@ -169,7 +169,7 @@ class QuickForeignToplevelManagerV1Private : public WObjectPrivate { wl_client_get_credentials(client, &pid, nullptr, nullptr); handle->setPid(pid); - handle->setIdentifier(*reinterpret_cast(surface->handle()->handle())); + handle->setIdentifier(*reinterpret_cast(surface->surface()->handle()->handle())); Q_EMIT surface->titleChanged(); Q_EMIT surface->appIdChanged();