<div dir="ltr">Just to play devil's advocate, do we really want to start getting into size hint type stuff? After this will be min size, then step size, then aspect, ...</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 4, 2016 at 5:14 AM Olivier Fourdan <<a href="mailto:ofourdan@redhat.com">ofourdan@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some application may wish to restrict their window in size, but<br>
xdg-shell has no mecanism for the client to advertise such a maximimum<br>
size.<br>
<br>
As a result, the compositor may try to maximize or fullscreen a window<br>
while the client would not allow for the requested size.<br>
<br>
Add a new request "set_max_size" to xdg-shell so that the client can<br>
tell the compositor which would be its largest acceptable size, so that<br>
the compositor can decide if maximize or fullscreen makes sense, draw<br>
an accurate animation, etc.<br>
<br>
Signed-off-by: Olivier Fourdan <<a href="mailto:ofourdan@redhat.com" target="_blank">ofourdan@redhat.com</a>><br>
Bugzilla: <a href="https://bugzilla.gnome.org/show_bug.cgi?id=764413" rel="noreferrer" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=764413</a><br>
---<br>
unstable/xdg-shell/xdg-shell-unstable-v5.xml | 20 ++++++++++++++++++++<br>
1 file changed, 20 insertions(+)<br>
<br>
diff --git a/unstable/xdg-shell/xdg-shell-unstable-v5.xml b/unstable/xdg-shell/xdg-shell-unstable-v5.xml<br>
index 542491f..e9e0f1d 100644<br>
--- a/unstable/xdg-shell/xdg-shell-unstable-v5.xml<br>
+++ b/unstable/xdg-shell/xdg-shell-unstable-v5.xml<br>
@@ -462,6 +462,26 @@<br>
<arg name="height" type="int"/><br>
</request><br>
<br>
+ <request name="set_max_size"><br>
+ <description summary="set the window maximum size"><br>
+ The client can set a maximum size to tell the compositor what would<br>
+ be the largest acceptable size of a surface.<br>
+<br>
+ The compositor can use this information to allow or disallow the<br>
+ maximized or fullscreen state depending on the actual output size<br>
+ for example, or draw a more accurate animation when transitionning<br>
+ states.<br>
+<br>
+ If never set, the size is not limited by the client.<br>
+<br>
+ A value of zero for either width, height or both means that the<br>
+ size is not limited for the given dimension.<br>
+ </description><br>
+ <arg name="width" type="int"/><br>
+ <arg name="height" type="int"/><br>
+ </request><br>
+<br>
+<br>
<request name="set_maximized"><br>
<description summary="maximize the window"><br>
Maximize the surface.<br>
--<br>
2.5.5<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>