protocol: define error codes for role reassignment
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 1 Oct 2014 09:52:22 +0000 (12:52 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 8 Oct 2014 10:09:56 +0000 (13:09 +0300)
commit7a0b86ab22e026387b6d529a46d8eb416caa26fa
tree2e94ab48521430cafb6f4a1cca4bbc4aaafc57aa
parentaee813f1ffae7cc20ea57070a08814980acc2beb
protocol: define error codes for role reassignment

On the interfaces where it was missing:
- wl_data_device
- wl_shell
- wl_pointer
add an error code for requests that set a wl_surface role when the
wl_surface already has a different role.

This is needed for compositors to appropriately report wl_surface
role violations.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Acked-by: Jason Ekstrand <jason.ekstrand@intel.com>
protocol/wayland.xml