[PATCH v4 xdg-shell-unstable-v6] xdg-shell: add preferred min/max size requests

Jonas Ã…dahl jadahl at gmail.com
Fri Apr 8 07:01:53 UTC 2016


On Fri, Apr 08, 2016 at 02:42:53AM -0400, Olivier Fourdan wrote:
> Hi
> 
> > I see no reason for "preferred" to be in the name. There is no intention to
> > be able to ever specify a "real" min/max size so this word does not
> > distinguish the values from any thing else.
> 
> This was asked explicitly on irc #wayland last Monday (iirc) by SardemFF7.
> 
> This is not to distinguish from a "real" min/max size, this is intended to make it very clear even in the request name that this is by no mean enforceable by the client.
> 
> In other words, it's just a hint (just that we can't use hint as this is dirty word nowadays ^_~)
> 
> > Also if these remain two calls, the compositor must allow the maximum to be
> > less than the minimum, at least temporarily between the calls.
> 
> I reckon this is the compositor implementation, not sure this should be in the spec.

What is the point of making the max/min size just "preferred"? What are
the use cases when compositor should ignore the hint?

I suppose one would be when a client sets a relatively small max size,
but then asks to be maximized or fullscreened, forcing the compositor to
ignore the hint, but then, why would that client ever set the relatively
small max size if it wasn't any truth to it?


Jonas

> 
> Cheers,
> Olivier
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list