wayland-server: Always use the display_resource for posting wl_display errors
This commit is contained in:
parent
a05546376c
commit
ffe8ee8d60
|
@ -166,7 +166,7 @@ wl_client_connection_data(int fd, uint32_t mask, void *data)
|
||||||
|
|
||||||
object = &resource->object;
|
object = &resource->object;
|
||||||
if (opcode >= object->interface->method_count) {
|
if (opcode >= object->interface->method_count) {
|
||||||
wl_resource_post_error(resource,
|
wl_resource_post_error(client->display_resource,
|
||||||
WL_DISPLAY_ERROR_INVALID_METHOD,
|
WL_DISPLAY_ERROR_INVALID_METHOD,
|
||||||
"invalid method %d, object %s@%d",
|
"invalid method %d, object %s@%d",
|
||||||
object->interface->name,
|
object->interface->name,
|
||||||
|
@ -180,7 +180,7 @@ wl_client_connection_data(int fd, uint32_t mask, void *data)
|
||||||
len -= size;
|
len -= size;
|
||||||
|
|
||||||
if (closure == NULL && errno == EINVAL) {
|
if (closure == NULL && errno == EINVAL) {
|
||||||
wl_resource_post_error(resource,
|
wl_resource_post_error(client->display_resource,
|
||||||
WL_DISPLAY_ERROR_INVALID_METHOD,
|
WL_DISPLAY_ERROR_INVALID_METHOD,
|
||||||
"invalid arguments for %s@%d.%s",
|
"invalid arguments for %s@%d.%s",
|
||||||
object->interface->name,
|
object->interface->name,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user