Redefine WindowTable as a fixed array

Instead of xalloc'ing it every server generation. The array is always
the same size (MAXSCREENS), anyway.
This commit is contained in:
Tomas Carnecky
2008-08-04 23:06:08 +03:00
committed by Daniel Stone
parent e882ee7056
commit 5532d63488
8 changed files with 6 additions and 16 deletions

View File

@@ -83,7 +83,7 @@ _X_EXPORT ClientPtr serverClient;
_X_EXPORT int currentMaxClients; /* current size of clients array */
_X_EXPORT long maxBigRequestSize = MAX_BIG_REQUEST_SIZE;
_X_EXPORT WindowPtr *WindowTable;
_X_EXPORT WindowPtr WindowTable[MAXSCREENS];
_X_EXPORT unsigned long globalSerialNumber = 0;
_X_EXPORT unsigned long serverGeneration = 0;