<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Wayland: not fullscreenable gtk+ apps can be fullscreened"
href="https://bugzilla.gnome.org/show_bug.cgi?id=764413#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Wayland: not fullscreenable gtk+ apps can be fullscreened"
href="https://bugzilla.gnome.org/show_bug.cgi?id=764413">bug 764413</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=325360&action=diff" name="attach_325360" title="[PATCH] wayland: obey configure event if maximized/fullscreen">attachment 325360</a> <a href="attachment.cgi?id=325360&action=edit" title="[PATCH] wayland: obey configure event if maximized/fullscreen">[details]</a></span> <a href='review?bug=764413&attachment=325360'>[review]</a>
[PATCH] wayland: obey configure event if maximized/fullscreen
While discussing the possiblity to add an max size hint to xdg-shell on irc, I
have been pointed out to the current xdg-shell specification that states that
if the surface is maximized or fullscreen, the window geometry specified in the
configure event _must_ be obeyed by the client, which gtk+ doesn't (thus this
bug):
<a href="https://cgit.freedesktop.org/wayland/wayland-protocols/tree/unstable/xdg-shell/xdg-shell-unstable-v5.xml#n345">https://cgit.freedesktop.org/wayland/wayland-protocols/tree/unstable/xdg-shell/xdg-shell-unstable-v5.xml#n345</a>
<entry name="maximized" value="1" summary="the surface is maximized">
<description summary="the surface is maximized">
The surface is maximized. The window geometry specified in the configure
event must be obeyed by the client.
</description>
</entry>
<entry name="fullscreen" value="2" summary="the surface is fullscreen">
<description summary="the surface is fullscreen">
The surface is fullscreen. The window geometry specified in the configure
event must be obeyed by the client.
</description>
</entry>
Therefore, this bug would be a bug in the application (ie gtk+) that doesn't
resize to the given size.
This patch makes it so that the given maximize/fullscreen size is obeyed,
gnome-calculator now maximize properly :-)
But I still reckon a max size hint would be beneficial to let the compositor
know that the window should not be resized to a greater size that specified, so
even if we fix this by becoming in-line with the xdg-shell specification, we
might want to also add the max size request to xdg-shell (if it ever reaches
consensus on the ML).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>