GNOME Bugzilla – Bug 754215
wayland: Clean up surface role assignment
Last modified: 2015-09-07 09:44:05 UTC
Usea better name, use GNOME conventions for error handling, open code the client error reporting and send the error to the correct resource. wl_subcompositor doesn't have a role error yet, so continue use some other error. The only effect of this is error received in the client will be a bit confusing, it will still be disconnected.
Created attachment 310150 [details] [review] wayland: Clean up surface role assignment
Review of attachment 310150 [details] [review]: This looks like an improvement from me. I wouldn't have objected to keeping the wayland-error reporting in the function to avoid duplication, but I do like the fact that this we keep the wayland error reporting right in the wayland protocol handlers where it is clearer what is going on.
Attachment 310150 [details] pushed as 9451372 - wayland: Clean up surface role assignment