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();