wayland-server: Always use the display_resource for posting wl_display errors
diff --git a/src/wayland-server.c b/src/wayland-server.c index 33bedf7..2295efc 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c
@@ -166,7 +166,7 @@ object = &resource->object; if (opcode >= object->interface->method_count) { - wl_resource_post_error(resource, + wl_resource_post_error(client->display_resource, WL_DISPLAY_ERROR_INVALID_METHOD, "invalid method %d, object %s@%d", object->interface->name, @@ -180,7 +180,7 @@ len -= size; if (closure == NULL && errno == EINVAL) { - wl_resource_post_error(resource, + wl_resource_post_error(client->display_resource, WL_DISPLAY_ERROR_INVALID_METHOD, "invalid arguments for %s@%d.%s", object->interface->name,