After receiving a drop a client should call data_offer.finish to tell the source it's done using the drop. A client could delete an offer after drop before calling finish. This can happen with misbehaving/buggy or malicious Wayland clients. A real case was found in the wild with Chromium, as described in the linked bug. In this situation we should let the source know the dnd is finished as there are no other transfers than can take place. We don't want to universally send this in all data offer destructors only, offers that are deleted post drop so the flag on the source is exposed. BUG: 482142wilder/Plasma/6.2
parent
7710b44f1d
commit
711c5bb43f
4 changed files with 33 additions and 18 deletions
Loading…
Reference in new issue