<div dir="ltr">Hi,<div><br></div><div>This seems like a reasonable direction for a change, though I would suggest a slightly different approach. For all cases where it reads "the compositor will respond by emitting", instead change to something like "if the compositor decides to apply this state change then it will respond by emitting". Such change clarifies the mechanism, as your patch intends, while also preserving the requirement that the compositor emits a state and geometry in a configure event in order to acknowledge requests for state changes.</div><div><br></div><div>Regards,</div><div>Mike</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Feb 27, 2018 at 7:25 AM <<a href="mailto:wl@ongy.net">wl@ongy.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Markus Ongyerth <<a href="mailto:wl@ongy.net" target="_blank">wl@ongy.net</a>><br>
<br>
The wording in xdg-shell `set_*` requests implies the compositor *will*<br>
react to requests.<br>
This would give clients the control over its state, while they should<br>
just be able to kindly ask for a state change.<br>
This makes sure the language reflects that and changes "will" to "may"<br>
in the relevant requests description.<br>
<br>
Signed-off-by: Markus Ongyerth <<a href="mailto:wl@ongy.net" target="_blank">wl@ongy.net</a>><br>
---<br>
 stable/xdg-shell/xdg-shell.xml | 16 ++++++++--------<br>
 1 file changed, 8 insertions(+), 8 deletions(-)<br>
<br>
diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml<br>
index 0b21364..c619634 100644<br>
--- a/stable/xdg-shell/xdg-shell.xml<br>
+++ b/stable/xdg-shell/xdg-shell.xml<br>
@@ -842,7 +842,7 @@<br>
        Maximize the surface.<br>
<br>
        After requesting that the surface should be maximized, the compositor<br>
-       will respond by emitting a configure event with the "maximized" state<br>
+       may respond by emitting a configure event with the "maximized" state<br>
        and the required window geometry. The client should then update its<br>
        content, drawing it in a maximized state. The client must also<br>
        acknowledge the configure when committing the new content (see<br>
@@ -852,11 +852,11 @@<br>
        surface, for example which output and what region of the screen should<br>
        be used.<br>
<br>
-       If the surface was already maximized, the compositor will still emit<br>
+       If the surface was already maximized, the compositor will emit<br>
        a configure event with the "maximized" state.<br>
<br>
        If the surface is in a fullscreen state, this request has no direct<br>
-       effect. It will alter the state the surface is returned to when<br>
+       effect. It may alter the state the surface is returned to when<br>
        unmaximized if not overridden by the compositor.<br>
       </description><br>
     </request><br>
@@ -866,7 +866,7 @@<br>
        Unmaximize the surface.<br>
<br>
        After requesting that the surface should be unmaximized, the compositor<br>
-       will respond by emitting a configure event without the "maximized"<br>
+       may respond by emitting a configure event without the "maximized"<br>
        state. If available, the compositor will include the window geometry<br>
        dimensions the window had prior to being maximized in the configure<br>
        event. The client must then update its content, drawing it in a<br>
@@ -878,11 +878,11 @@<br>
        unmaximized; usually the position the surface had before maximizing, if<br>
        applicable.<br>
<br>
-       If the surface was already not maximized, the compositor will still<br>
+       If the surface was already not maximized, the compositor will<br>
        emit a configure event without the "maximized" state.<br>
<br>
        If the surface is in a fullscreen state, this request has no direct<br>
-       effect. It will alter the state the surface is returned to when<br>
+       effect. It may alter the state the surface is returned to when<br>
        unmaximized if not overridden by the compositor.<br>
       </description><br>
     </request><br>
@@ -892,7 +892,7 @@<br>
        Make the surface fullscreen.<br>
<br>
        After requesting that the surface should be fullscreened, the<br>
-       compositor will respond by emitting a configure event with the<br>
+       compositor may respond by emitting a configure event with the<br>
        "fullscreen" state and the fullscreen window geometry. The client must<br>
        also acknowledge the configure when committing the new content (see<br>
        ack_configure).<br>
@@ -921,7 +921,7 @@<br>
        Make the surface no longer fullscreen.<br>
<br>
        After requesting that the surface should be unfullscreened, the<br>
-       compositor will respond by emitting a configure event without the<br>
+       compositor may respond by emitting a configure event without the<br>
        "fullscreen" state.<br>
<br>
        Making a surface unfullscreen sets states for the surface based on the following:<br>
--<br>
2.16.2<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div>