summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-10-11 14:36:49 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-10-11 14:37:45 -0400
commitffe8ee8d602ff24588e994ec41393ccae128bca1 (patch)
treeba5abe4822652d43071faeab8c416d803a42df73
parenta05546376c7332c111938ce6cadefd30570f689c (diff)
wayland-server: Always use the display_resource for posting wl_display errors
-rw-r--r--src/wayland-server.c4
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,