Maximum window size

Carsten Haitzler (The Rasterman) raster at rasterman.com
Fri Nov 4 23:27:43 PST 2005


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.

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com
裸好多
Tokyo, Japan (東京 日本)



More information about the xorg mailing list