+ if (!weston_desktop_surface_get_fullscreen(dsurface) ||
+ geom.width != bg_output->output->width ||
+ geom.height != bg_output->output->height) {
+ struct weston_desktop_client *desktop_client =
+ weston_desktop_surface_get_client(dsurface);
+ struct wl_client *client =
+ weston_desktop_client_get_client(desktop_client);
+ wl_client_post_implementation_error(client,
+ "Can not display surface due to invalid geometry");
+ return;
+ }