Commit 43152a3a authored by Harish Krupo's avatar Harish Krupo
Browse files

Fix: clients/window: Premature finish request when copy-pasting



As per the wl_data_offer::finish documentation, the request is only
valid for drag n drop operations and signifies that a dnd is completed.
Send finish request only when we have a dnd operation active.
Signed-off-by: default avatarHarish Krupo <harishkrupo@gmail.com>
parent 737ac0d4
......@@ -3922,8 +3922,9 @@ offer_io_func(struct task *task, uint32_t events)
offer->x, offer->y, offer->user_data);
if (len == 0) {
if (display->data_device_manager_version >=
WL_DATA_OFFER_FINISH_SINCE_VERSION)
if ((offer != offer->input->selection_offer) &&
(display->data_device_manager_version >=
WL_DATA_OFFER_FINISH_SINCE_VERSION))
wl_data_offer_finish(offer->offer);
close(offer->fd);
data_offer_destroy(offer);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment