summaryrefslogtreecommitdiff
path: root/protocol/xdg-shell.xml
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2015-05-05 15:35:17 +0800
committerBryce Harrington <bryce@osg.samsung.com>2015-05-21 19:07:35 -0700
commit7ef8c9144dd38bb59726e82af988242b2407aa0f (patch)
tree3f512b703dce9458063dfc53554c9ee8793871e9 /protocol/xdg-shell.xml
parent7a9bb0ea004ce2a813e3beda3de9caec07a4407d (diff)
downloadweston-7ef8c9144dd38bb59726e82af988242b2407aa0f.tar.gz
weston-7ef8c9144dd38bb59726e82af988242b2407aa0f.tar.bz2
weston-7ef8c9144dd38bb59726e82af988242b2407aa0f.zip
xdg-shell: Document the set_maximized and unsetmaximized requests
This patch changes the semantics (compared to the previous version of this patch) of maximizing/unmaximizing an already maximized/unmaximized surface to always result in a configure event. Doing it this way would be more consistent with how the compositor works regarding other configure events i.e. send many, letting the client ignore when needed (for example during resize). Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'protocol/xdg-shell.xml')
-rw-r--r--protocol/xdg-shell.xml44
1 files changed, 42 insertions, 2 deletions
diff --git a/protocol/xdg-shell.xml b/protocol/xdg-shell.xml
index 72570363..44a3a12c 100644
--- a/protocol/xdg-shell.xml
+++ b/protocol/xdg-shell.xml
@@ -417,8 +417,48 @@
<arg name="height" type="int"/>
</request>
- <request name="set_maximized" />
- <request name="unset_maximized" />
+ <request name="set_maximized">
+ <description summary="maximize the window">
+ Maximize the surface.
+
+ After requesting that the surface should be maximized, the compositor
+ will respond by emitting a configure event with the "maximized" state
+ and the required window geometry. The client should then update its
+ content, drawing it in a maximized state, i.e. without shadow or other
+ decoration outside of the window geometry. The client must also
+ acknowledge the configure when committing the new content (see
+ ack_configure).
+
+ It is up to the compositor to decide how and where to maximize the
+ surface, for example which output and what region of the screen should
+ be used.
+
+ If the surface was already maximized, the compositor will still emit
+ a configure event with the "maximized" state.
+ </description>
+ </request>
+
+ <request name="unset_maximized">
+ <description summary="unmaximize the window">
+ Unmaximize the surface.
+
+ After requesting that the surface should be unmaximized, the compositor
+ will respond by emitting a configure event without the "maximized"
+ state. If available, the compositor will include the window geometry
+ dimensions the window had prior to being maximized in the configure
+ request. The client must then update its content, drawing it in a
+ regular state, i.e. potentially with shadow, etc. The client must also
+ acknowledge the configure when committing the new content (see
+ ack_configure).
+
+ It is up to the compositor to position the surface after it was
+ unmaximized; usually the position the surface had before maximizing, if
+ applicable.
+
+ If the surface was already not maximized, the compositor will still
+ emit a configure event without the "maximized" state.
+ </description>
+ </request>
<request name="set_fullscreen">
<description summary="set the window as fullscreen on a monitor">