diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-06-21 12:40:29 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-23 11:54:05 +0000 |
commit | 0040c78c0befb4fef1f092924b0e9d2e6a07d542 (patch) | |
tree | 4de3481a8802cd18ee176094bd674f42ea3d29c5 | |
parent | fffa1908af47d7cb1691425a0b6d9dccb01f1365 (diff) |
compositor: fix wlr_surface_set_role() error messages
-rw-r--r-- | types/wlr_compositor.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index d22d9c2c..bc0fd4f6 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -774,7 +774,7 @@ bool wlr_surface_set_role(struct wlr_surface *surface, if (surface->role != NULL && surface->role != role) { if (error_resource != NULL) { wl_resource_post_error(error_resource, error_code, - "Cannot assign role %s to wl_surface@%" PRIu32 ", already has role %s\n", + "Cannot assign role %s to wl_surface@%" PRIu32 ", already has role %s", role->name, wl_resource_get_id(surface->resource), surface->role->name); } @@ -782,9 +782,8 @@ bool wlr_surface_set_role(struct wlr_surface *surface, } if (surface->role_data != NULL && surface->role_data != role_data) { wl_resource_post_error(error_resource, error_code, - "Cannot reassign role %s to wl_surface@%" PRIu32 "," - "role object still exists", role->name, - wl_resource_get_id(surface->resource)); + "Cannot reassign role %s to wl_surface@%" PRIu32 ", role object still exists", + role->name, wl_resource_get_id(surface->resource)); return false; } |