data-device: send INVALID_FINISH when operation != dnd
The documentation of wl_data_offer::finish states that it should be used to signify that a drag and drop operation is completed. So send WL_DATA_OFFER_ERROR_INVALID_FINISH when the client calls the finish request but the operation isn't dnd. Signed-off-by: Harish Krupo <harishkrupo@gmail.com>
This commit is contained in:
@@ -427,6 +427,7 @@ struct weston_data_source {
|
||||
struct weston_seat *seat;
|
||||
bool accepted;
|
||||
bool actions_set;
|
||||
bool set_selection;
|
||||
uint32_t dnd_actions;
|
||||
enum wl_data_device_manager_dnd_action current_dnd_action;
|
||||
enum wl_data_device_manager_dnd_action compositor_action;
|
||||
|
||||
Reference in New Issue
Block a user