Diffusion KWin 26ce4869a09e

[xwl] Fix crash if same data is requested twice

Authored by davidedmundson on Apr 6 2020, 5:10 PM.

Description

[xwl] Fix crash if same data is requested twice

Summary:
m_dataRequests is a list of transfers for a given selection.
It exists primarily as a ref counting mechanism that matches up
transfers with selections.

If the same data is requested twice we would insert two items into the
list with matching timestamps for the original selection. This then
confuses the callback handling.

BUG: 417936

Test Plan:
kwin_wayland + chromium
drag and drop a URL onto desktopview. kwin used to crash here
Now a context menu now appears and I can add a link

Reviewers: KWin

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D28630

Details

Committed
davidedmundsonApr 6 2020, 10:22 PM
Differential Revision
D28630: [xwl] Fix crash if same data is requested twice
Parents
R108:6dc938907f70: kwin: fix compilation error with strict iterators
Branches
Unknown
Tags
Unknown