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 <daniels@collabora.com>
dev
Daniel Stone 5 years ago
parent cb481a66cd
commit 24c0f83778
  1. 6
      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;
}

Loading…
Cancel
Save