From: Daniel Stone Date: Fri, 20 Mar 2020 14:50:52 +0000 (+0000) Subject: xdg-shell: More helpful surface-state-mismatch error X-Git-Tag: upstream/9.0.0~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24c0f83778f3db8476cd875580876d1d1a27a13a;p=platform%2Fupstream%2Fweston.git xdg-shell: More helpful surface-state-mismatch error When libweston-desktop kills an xdg-shell client because it has failed to configure its surface as demanded, be more helpful by explaining exactly what the error is. Signed-off-by: Daniel Stone --- diff --git a/libweston-desktop/xdg-shell.c b/libweston-desktop/xdg-shell.c index d1fc2ec1..34e7be92 100644 --- a/libweston-desktop/xdg-shell.c +++ b/libweston-desktop/xdg-shell.c @@ -683,7 +683,11 @@ weston_desktop_xdg_toplevel_committed(struct weston_desktop_xdg_toplevel *toplev wl_resource_post_error(client_resource, XDG_WM_BASE_ERROR_INVALID_SURFACE_STATE, - "xdg_surface buffer does not match the configured state"); + "xdg_surface buffer (%" PRIi32 " x %" PRIi32 ") " + "does not match the configured state (%" PRIi32 " x %" PRIi32 ")", + geometry.width, geometry.height, + toplevel->next.size.width, + toplevel->next.size.height); return; }