Bug 91947

Summary: Protocol documentation should indicate when wl_data_source::cancelled events will be sent
Product: Wayland Reporter: Michael Catanzaro <mcatanzaro>
Component: waylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium CC: mcatanzaro
Version: 1.5.0   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 83429, 91948    

Description Michael Catanzaro 2015-09-09 20:36:28 UTC
The Wayland protocol documentation does not define when wl_data_source::cancelled events will be sent. They are only sent for the selection data source, and never for drag sources, but the documentation does not provide any indication of this. Failure to heed this leads to issues like bug #91943.
Comment 1 Michael Catanzaro 2016-03-17 02:02:44 UTC
"- The data source has been replaced by another data source. - The drag-and-drop operation was performed, but the drop destination did not accept any of the mimetypes offered through wl_data_source.target. - The drag-and-drop operation was performed, but the drop destination did not select any of the actions present in the mask offered through wl_data_source.action. - The drag-and-drop operation was performed but didn't happen over a surface. - The compositor cancelled the drag-and-drop operation (e.g. compositor dependent timeouts to avoid stale drag-and-drop transfers)."

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.