xdg-shell: Provide more helpful description for invalid window geometry error
This commit is contained in:
parent
fbe8aff439
commit
46604a3ca2
1 changed files with 2 additions and 1 deletions
|
@ -247,7 +247,8 @@ void XdgSurfaceInterfacePrivate::xdg_surface_set_window_geometry(Resource *resou
|
|||
}
|
||||
|
||||
if (width < 1 || height < 1) {
|
||||
wl_resource_post_error(resource->handle, -1, "invalid window geometry size");
|
||||
wl_resource_post_error(resource->handle, -1, "invalid window geometry size (%dx%d)",
|
||||
width, height);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue