|
Nope. Not even as a hint. The asynchronous connection between the
client and server would make any such inquiry inherently unreliable.
What happens is that your PIXMAP will be loaded into offscreen memory
(if there is such a thing) in a server dependent fashion. This may
cause other PIXMAPs to be: Swapped to main memory, written to disk,
thrown away completely. Or, your request may simply fail. It all
really depends on the server and to some extent the hardware. And
even knowing the total "offscreen memory" can't tell you if your
PIXMAP would fit - since you also would need to know things about
offscreen memory organization, server design (for the specific server)
and offscreen memory fragmentation.
|
| On DEC VMS servers, you can allocate pixmaps up to a certain absolute size
(roughly the size of the screen on a GPX, for example). If your pixmaps don't
all fit in, they are swapped to server's process virtual memory. I don't know
of any case where a pixmap is arbitrarily thrown away. That would be a violation
of the X protocol.
To find out you have to allocate it. Do an XSync, establish an error handler,
do the alloc, do another XSync. If the error handler was not called, the pixmap
was allocated successfully.
Burns
|