diff options
-rw-r--r-- | src/wayland-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ wl_client_connection_data(int fd, uint32_t mask, void *data) 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 @@ wl_client_connection_data(int fd, uint32_t mask, void *data) 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, |