Skip to content

Commit

Permalink
fix: dock crash
Browse files Browse the repository at this point in the history
send wrong identifier. why two xdgsurface of one program has the same wlr_xdg_surface resource.

Issue: linuxdeepin/developer-center#6885

Log:
  • Loading branch information
justforlxz committed Jan 12, 2024
1 parent f65779b commit c6b0536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treeland/quick/protocols/foreigntoplevelmanagerv1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class QuickForeignToplevelManagerV1Private : public WObjectPrivate {
wl_client_get_credentials(client, &pid, nullptr, nullptr);
handle->setPid(pid);

handle->setIdentifier(*reinterpret_cast<const uint32_t *>(surface->handle()->handle()));
handle->setIdentifier(*reinterpret_cast<const uint32_t *>(surface->surface()->handle()->handle()));

Q_EMIT surface->titleChanged();
Q_EMIT surface->appIdChanged();
Expand Down

0 comments on commit c6b0536

Please sign in to comment.