[PATCH] Introduce set_size_hints xdg_surface request.
Pekka Paalanen
ppaalanen at gmail.com
Fri Aug 8 00:00:19 PDT 2014
Bill, you again managed to drop people from CC. Please do not do that.
On Thu, 07 Aug 2014 12:43:17 -0700
Bill Spitzak <spitzak at gmail.com> wrote:
> On 08/07/2014 07:18 AM, Jari Vetoniemi wrote:
> >> What is the default value of these hints?
>
> I think you could get away with defaulting the minimum to be about
> 100x100. I think that is sufficient to get clients to work ok and it is
> small enough to encourage them to set this rather than relying on the
> default.
I really don't think we want to encode that into the protocol
specification. "Unset" is the right answer here.
The compositor can have its own preferences, and you can have your
100x100 limit there. Nothing says the compositor must use the minimum
hint size for initial size, and I expect most compositors will also not
do so.
> If the surface is currently smaller than the minimum it should act like
> the current size is the minimum.
>
> >> How does this interact with the protocol sequence to decide the initial
> >> size of a window before it gets mapped?
>
> These should have no effect. The client is free to supply sizes outside
> the range it claims. And the compositor is free to request them. It is
> only a hint.
Not exactly always.
And yes, like in my rephrased question, there is very definitely an
interaction, or you may see a size change glitch on opening new windows.
Thanks,
pq
More information about the wayland-devel
mailing list