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 Fix minor typos 2019-11-26 19:48:29 +02:00
clipboard.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
databridge.cpp [xwl] Fix coding style issues 2019-07-03 00:54:55 +03:00
databridge.h warnings-- 2019-12-02 09:02:51 +00:00
dnd.cpp Fix minor typos 2019-11-26 19:48:29 +02:00
dnd.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
drag.cpp [xwl] Fix coding style issues 2019-07-03 00:54:55 +03:00
drag.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
drag_wl.cpp Rename Client to X11Client 2019-09-25 21:11:37 +03:00
drag_wl.h [xwl] Fix coding style issues 2019-07-03 00:54:55 +03:00
drag_x.cpp [xwl] Fix crash if same data is requested twice 2020-04-06 23:22:08 +01:00
drag_x.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
selection.cpp Rename Client to X11Client 2019-09-25 21:11:37 +03:00
selection.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
selection_source.cpp [xwl] Fix coding style issues 2019-07-03 00:54:55 +03:00
selection_source.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
transfer.cpp [xwl] Return c++ version of true in method 2019-10-22 22:37:11 +01:00
transfer.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
xwayland.cpp Port away from a deprecated signal 2020-01-25 23:13:53 +02:00
xwayland.h Revert "wayland: Terminate client connections before Workspace is destroyed" 2019-08-07 11:21:30 +03:00
xwayland_interface.cpp [xwl] Fix coding style issues 2019-07-03 00:54:55 +03:00
xwayland_interface.h Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00