Maximum window size

Russell Shaw rjshaw at netspace.net.au
Fri Nov 4 23:51:25 PST 2005


Carsten Haitzler (The Rasterman) wrote:
> On Sat, 05 Nov 2005 17:28:01 +1100 Russell Shaw <rjshaw at netspace.net.au>
> babbled:
> 
>>Hi,
>>With XCreateWindow(), is the maximum window size a 32-bit integer,
>>or 16-bits, or implementation dependent?
> 
> oops - i was thinking X resource id's - not geometry. yes., window size is an
> unsigned short (16bits) thus max 65535x65535. beware. you actually can only
> EFFECTIVELY draw in the upper 32767x32767 because drawing co-ordinates are
> SINGED 16bit. you can draw to all of it .. with some tricks - like drawing int
> tiles to backng pixmaps or draw to the upper-left quad then xcopyarea your
> draws to the inaccessible regions - not a fun thing to have to do.
> 
> it also may be that if it is a toplevel application window the window manager
> may limit the client sized to something "sane" and not alow overly huge windows
> that go waaay off screen.

Hi,
I'm using it as a large scrollable window nested (clipped) within a small
window.

It would be useful if X was buildable for 32-bit windows.



More information about the xorg mailing list