[PATCH 1/5] dix: make MAXSCREENS run-time configurable
Tiago Vignatti
tiago.vignatti at nokia.com
Fri Apr 9 10:33:10 PDT 2010
On Thu, Apr 08, 2010 at 11:23:21PM +0200, ext Keith Packard wrote:
>
> Yeah, for things which are created after the ScreenRec is allocated, it
> makes sense to just allocate them right in the ScreenRec.
>
> For things which are in the xfree86 DDX and are allocated before the
> ScreenRec, those can be in ScrnInfo.
>
> If there are things outside the xfree86 DDX which are allocated before
> the ScreenRec, we'd need a third plan.
>
that what Keith said summarizes pretty well indeed.
I thought a bit and started a draft of a patch what we can make this stuff
"maxscreensless". And what seemed to be the hard part is actually there: I
brought all global definitions inside AddScreen, reallocating them (well, I'll
have do the same with WindowTable there). See the attached.
Now it seems the rest is bit trivial then, don't? I meant, like Keith and
Aaron said, is just a matter to add a new struct member in both ScreenRec and
ScrnInfo.
Who tries? :)
Tiago
-------------- next part --------------
A non-text attachment was scrubbed...
Name: draft-dynamic-screens-alloc.diff
Type: text/x-diff
Size: 2998 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100409/06fa8d1a/attachment-0001.diff>
More information about the xorg-devel
mailing list