kwin/xwl
David Edmundson 26ce4869a0 [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
2020-04-06 23:22:08 +01:00
..
clipboard.cpp
clipboard.h
databridge.cpp
databridge.h
dnd.cpp
dnd.h
drag.cpp
drag.h
drag_wl.cpp
drag_wl.h
drag_x.cpp [xwl] Fix crash if same data is requested twice 2020-04-06 23:22:08 +01:00
drag_x.h
selection.cpp
selection.h
selection_source.cpp
selection_source.h
transfer.cpp
transfer.h
xwayland.cpp Port away from a deprecated signal 2020-01-25 23:13:53 +02:00
xwayland.h
xwayland_interface.cpp
xwayland_interface.h