mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
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: Harish Krupo <harishkrupo@gmail.com>
(cherry picked from commit 43152a3a8f)
This commit is contained in:
parent
2e5ad9252e
commit
f76cf8a5b7
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue