Why X protocol/server forbid zero width/height?

Ben Skeggs darktama at iinet.net.au
Wed Nov 23 05:40:54 PST 2005


On Thu, 2005-11-24 at 00:36 +1100, Russell Shaw wrote:
> Olivier Galibert wrote:
> > On Thu, Nov 24, 2005 at 12:12:16AM +1100, Russell Shaw wrote:
> > 
> >>X could be modded to eliminate any hard-coded problems, but still be made to
> >>exhibit the same old behaviour to legacy apps.
> > 
> > Frankly, do you think any application relies on getting BadValue?
> > Moves from "this is invalid" to "this is now valid" tend to be
> > considered perfectly backwards compatible.
> > 
> > I'd understand using the presence of an extension to say that it is
> > the new and improved version, but having code to revert to the
> > previous behaviour when it's not tickled right is probably an
> > unnecessary maintainance burden.
> 
> I was only keeping the pedants happy;)
> I wouldn't do an extension just for that, but as part of a larger one.
> 
> If a user was to manually resize a window to zero size, it might disappear
> without any way of resizing it.
I imagine that whatever window manager was running would have window
decorations of a "sane" size to prevent that.

> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg



More information about the xorg mailing list