[PATCH] xdg-shell: add set_max_size request

Carsten Haitzler (The Rasterman) raster at rasterman.com
Tue Apr 5 07:28:27 UTC 2016


On Tue, 5 Apr 2016 00:00:08 -0700 "Jasper St. Pierre" <jstpierre at mecheye.net>
said:

> "hint" just means "don't bother setting this flag, since it won't do
> anything".

i don't know what universe you have lived in, but for the past 20 years i've
done x11 wm's hints have NEVER meant that. they mean "here is something i'd
really like you do deal with sensibly - sensible may range from x to y
depending on situation and i'll have to deal with the extremes".

if ANYTHING hints have been loosened up over time because of abuse by apps - eg
program specified position. for a long tiem apps insisted on doing this even if
their x,y were stupid to wm's started ignoring this, then apps o-opted user
specified position even though the user never specified it. then slowly wm's
got the ability to ignore this too... but more carefully on user request.

> If we want min/max size rules, I want them to be enforced. Compositors
> SHOULD NOT attempt to configure windows above or below the requested
> size.

i'd say compositors can - they just need to live with the fact the client MAY
not provide a buffer of their requested size and have to "deal with it". eg -
don't or squish/stretch the buffer texture.

> On Mon, Apr 4, 2016 at 11:58 PM, Olivier Fourdan <ofourdan at redhat.com> wrote:
> > Hi all,
> >
> > ----- Original Message -----
> >> On Mon, 04 Apr 2016 19:44:58 +0000 "Jasper St. Pierre"
> >> <jstpierre at mecheye.net>
> >> said:
> >>
> >> > I think min/max hints are acceptable in xdg-shell.
> >>
> >> i agree. they are realistic things a apps have as constraints on their
> >> content.
> >> knowing in advance what those constraints might be can make life for a
> >> compositor much easier.
> >
> > So, it seems max/min "hints" can be desirable from a window/compositor
> > manager point of view, whereas things like aspect ratio, size steppings,
> > etc. aren't
> >
> > I'll send an updated patch to:
> >
> >  - Reword the description and request name to make it clearer that it
> > really is a preference and not a rule (Quentin mentioned that on irc
> > yesterday), without using the word "hint" :)
> >  - add a similar "preferable min size" request
> >
> > Then we can continue discussing from there.
> >
> > Cheers,
> > Olivier
> >
> 
> 
> 
> -- 
>   Jasper
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com



More information about the wayland-devel mailing list