From 5c274ffc9068da85e08d6144e1304c3b9e0c932f Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 16 Aug 2022 14:48:44 +0200 Subject: unstable/xdg-shell v6: clarify when which errors are used Signed-off-by: Xaver Hugl --- unstable/xdg-shell/xdg-shell-unstable-v6.xml | 31 ++++++++++++++++++---------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/unstable/xdg-shell/xdg-shell-unstable-v6.xml b/unstable/xdg-shell/xdg-shell-unstable-v6.xml index 5e25e66..dfaf784 100644 --- a/unstable/xdg-shell/xdg-shell-unstable-v6.xml +++ b/unstable/xdg-shell/xdg-shell-unstable-v6.xml @@ -404,14 +404,17 @@ Destroy the xdg_surface object. An xdg_surface must only be destroyed - after its role object has been destroyed. + after its role object has been destroyed. If the role object still + exists when this request is issued, the zxdg_shell_v6.defunct_surfaces + is raised. This creates an xdg_toplevel object for the given xdg_surface and gives - the associated wl_surface the xdg_toplevel role. + the associated wl_surface the xdg_toplevel role. If the surface already + had a role, the zxdg_shell_v6.role error is raised. See the documentation of xdg_toplevel for more details about what an xdg_toplevel is and how it is used. @@ -422,7 +425,8 @@ This creates an xdg_popup object for the given xdg_surface and gives the - associated wl_surface the xdg_popup role. + associated wl_surface the xdg_popup role. If the surface already + had a role, the zxdg_shell_v6.role error is raised. See the documentation of xdg_popup for more details about what an xdg_popup is and how it is used. @@ -486,6 +490,9 @@ A client may send multiple ack_configure requests before committing, but only the last request sent before a commit indicates which configure event the client really is responding to. + + If an invalid serial is used, the zxdg_shell_v6.invalid_surface_state + error is raised. @@ -692,19 +699,21 @@ The surface is maximized. The window geometry specified in the configure - event must be obeyed by the client. + event must be obeyed by the client. If the window geometry is not obyed, + the zxdg_shell_v6.invalid_surface_state error is raised. - The surface is fullscreen. The window geometry specified in the configure - event must be obeyed by the client. + The surface is fullscreen. See set_fullscreen for more information. The surface is being resized. The window geometry specified in the - configure event is a maximum; the client cannot resize beyond it. + configure event is a maximum; the client cannot resize beyond it. If the + client attempts to resize above it, the zxdg_shell_v6.invalid_surface_state + error is raised. Clients that have aspect ratio or cell sizing configuration can use a smaller size, however. @@ -752,8 +761,8 @@ a surface is illegal and will result in a protocol error. The width and height must be greater than or equal to zero. Using - strictly negative values for width and height will result in a - protocol error. + strictly negative values for width and height will result in the + zxdg_shell_v6.invalid_surface_state error being raised. @@ -793,8 +802,8 @@ a surface is illegal and will result in a protocol error. The width and height must be greater than or equal to zero. Using - strictly negative values for width and height will result in a - protocol error. + strictly negative values for width and height will result in the + zxdg_shell_v6.invalid_surface_state error being raised. -- cgit v1.2.1