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
commit 5532d63488
8 changed files with 6 additions and 16 deletions

View file

@ -47,6 +47,7 @@ in this Software without prior written authorization from The Open Group.
#include "gcstruct.h"
#include "inputstr.h"
#include "validate.h"
#include "globals.h"
#include <sys/time.h>
#define _MULTIBUF_SERVER_ /* don't want Xlib structures */
@ -199,8 +200,6 @@ static Bool bufChangeWindowAttributes();
static void bufClearToBackground();
static void bufCopyWindow();
extern WindowPtr *WindowTable;
static Bool
bufMultibufferInit(pScreen, pMBScreen)
ScreenPtr pScreen;