diff options
author | Derek Foreman <derek.foreman@collabora.com> | 2024-04-17 11:35:09 -0500 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2024-05-06 09:45:35 +0000 |
commit | c5b47dc928107bcb6966f0f7a47813bfc0a59bfb (patch) | |
tree | 65fdc9ecddca389c8fd005cb2429e238c7f6bcf5 /stable | |
parent | 9bfb27f0a4753a8f51a0974f9578aa4bcf48ef6c (diff) |
various: Fix definition of double-buffered state
The strict "mailbox" model of wayland past is not how modern compositors
process commits, and many explanations of how double buffered state is
applied throughout wayland-protocols are no longer strictly accurate.
Instead of trying to define double-buffered state at every point of use,
just reference the evolving definition of wl_surface.commit.
This still leaves a few old definitions that weren't trivially updated.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Diffstat (limited to 'stable')
-rw-r--r-- | stable/viewporter/viewporter.xml | 9 | ||||
-rw-r--r-- | stable/xdg-shell/xdg-shell.xml | 12 |
2 files changed, 7 insertions, 14 deletions
diff --git a/stable/viewporter/viewporter.xml b/stable/viewporter/viewporter.xml index d1048d1..1374aec 100644 --- a/stable/viewporter/viewporter.xml +++ b/stable/viewporter/viewporter.xml @@ -71,8 +71,7 @@ src_y, src_width, src_height), and the destination size (dst_width, dst_height). The contents of the source rectangle are scaled to the destination size, and content outside the source rectangle is ignored. - This state is double-buffered, and is applied on the next - wl_surface.commit. + This state is double-buffered, see wl_surface.commit. The two parts of crop and scale state are independent: the source rectangle, and the destination size. Initially both are unset, that @@ -149,8 +148,7 @@ or negative, or x or y are negative, raise the bad_value protocol error. - The crop and scale state is double-buffered state, and will be - applied on the next wl_surface.commit. + The crop and scale state is double-buffered, see wl_surface.commit. </description> <arg name="x" type="fixed" summary="source rectangle x"/> <arg name="y" type="fixed" summary="source rectangle y"/> @@ -169,8 +167,7 @@ contains zero or negative values raises the bad_value protocol error. - The crop and scale state is double-buffered state, and will be - applied on the next wl_surface.commit. + The crop and scale state is double-buffered, see wl_surface.commit. </description> <arg name="width" type="int" summary="surface width"/> <arg name="height" type="int" summary="surface height"/> diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml index 9201f34..bf25b66 100644 --- a/stable/xdg-shell/xdg-shell.xml +++ b/stable/xdg-shell/xdg-shell.xml @@ -515,8 +515,7 @@ portions like drop-shadows which should be ignored for the purposes of aligning, placing and constraining windows. - The window geometry is double buffered, and will be applied at the - time wl_surface.commit of the corresponding wl_surface is called. + The window geometry is double-buffered state, see wl_surface.commit. When maintaining a position, the compositor should treat the (x, y) coordinate of the window geometry as the top left corner of the window. @@ -832,8 +831,7 @@ configure event to ensure that both the client and the compositor setting the state can be synchronized. - States set in this way are double-buffered. They will get applied on - the next commit. + States set in this way are double-buffered, see wl_surface.commit. </description> <entry name="maximized" value="1" summary="the surface is maximized"> <description summary="the surface is maximized"> @@ -924,8 +922,7 @@ The width and height arguments are in window geometry coordinates. See xdg_surface.set_window_geometry. - Values set in this way are double-buffered. They will get applied - on the next commit. + Values set in this way are double-buffered, see wl_surface.commit. The compositor can use this information to allow or disallow different states like maximize or fullscreen and draw accurate @@ -965,8 +962,7 @@ The width and height arguments are in window geometry coordinates. See xdg_surface.set_window_geometry. - Values set in this way are double-buffered. They will get applied - on the next commit. + Values set in this way are double-buffered, see wl_surface.commit. The compositor can use this information to allow or disallow different states like maximize or fullscreen and draw accurate |