- Add some XFIXES bits apparently missed in the DAMAGE-XFIXES merge

- Add missing XCSECURITY ifdef.
- Sync some whitespace to xserver CVS and surrounding style.
This commit is contained in:
Eric Anholt 2004-07-31 01:48:27 +00:00
parent 370bda820b
commit 326729ebca
3 changed files with 32 additions and 16 deletions

View File

@ -68,6 +68,10 @@ typedef struct _GlyphShare {
static GlyphSharePtr sharedGlyphs = (GlyphSharePtr)NULL; static GlyphSharePtr sharedGlyphs = (GlyphSharePtr)NULL;
#ifdef XFIXES
static CARD32 cursorSerial;
#endif
static void static void
FreeCursorBits(CursorBitsPtr bits) FreeCursorBits(CursorBitsPtr bits)
{ {
@ -189,6 +193,10 @@ AllocCursorARGB(psrcbits, pmaskbits, argb, cm,
pCurs->bits = bits; pCurs->bits = bits;
pCurs->refcnt = 1; pCurs->refcnt = 1;
#ifdef XFIXES
pCurs->serialNumber = ++cursorSerial;
pCurs->name = None;
#endif
pCurs->foreRed = foreRed; pCurs->foreRed = foreRed;
pCurs->foreGreen = foreGreen; pCurs->foreGreen = foreGreen;
@ -379,6 +387,10 @@ AllocGlyphCursor(source, sourceChar, mask, maskChar,
CheckForEmptyMask(bits); CheckForEmptyMask(bits);
pCurs->bits = bits; pCurs->bits = bits;
pCurs->refcnt = 1; pCurs->refcnt = 1;
#ifdef XFIXES
pCurs->serialNumber = ++cursorSerial;
pCurs->name = None;
#endif
pCurs->foreRed = foreRed; pCurs->foreRed = foreRed;
pCurs->foreGreen = foreGreen; pCurs->foreGreen = foreGreen;

View File

@ -1,4 +1,4 @@
/* $XdotOrg: xc/programs/Xserver/dix/dispatch.c,v 1.3 2004/06/21 13:40:25 ago Exp $ */ /* $XdotOrg: xc/programs/Xserver/dix/dispatch.c,v 1.4 2004/07/29 18:43:58 stukreit Exp $ */
/* $Xorg: dispatch.c,v 1.5 2001/02/09 02:04:40 xorgcvs Exp $ */ /* $Xorg: dispatch.c,v 1.5 2001/02/09 02:04:40 xorgcvs Exp $ */
/************************************************************ /************************************************************
@ -1050,13 +1050,12 @@ ProcSetSelectionOwner(client)
CurrentSelections[i].client = (pWin ? client : NullClient); CurrentSelections[i].client = (pWin ? client : NullClient);
if (SelectionCallback) if (SelectionCallback)
{ {
SelectionInfoRec info; SelectionInfoRec info;
info.selection = &CurrentSelections[i]; info.selection = &CurrentSelections[i];
info.kind= SelectionSetOwner; info.kind= SelectionSetOwner;
CallCallbacks(&SelectionCallback, &info); CallCallbacks(&SelectionCallback, &info);
} }
return (client->noClientException); return (client->noClientException);
} }
else else
@ -2130,7 +2129,9 @@ DoGetImage(client, format, drawable, x, y, width, height, planemask, im_return)
Mask plane = 0; Mask plane = 0;
char *pBuf; char *pBuf;
xGetImageReply xgi; xGetImageReply xgi;
#ifdef XCSECURITY
RegionPtr pVisibleRegion = NULL; RegionPtr pVisibleRegion = NULL;
#endif
if ((format != XYPixmap) && (format != ZPixmap)) if ((format != XYPixmap) && (format != ZPixmap))
{ {

View File

@ -1,4 +1,4 @@
/* $XdotOrg: xc/programs/Xserver/dix/window.c,v 1.3 2004/07/29 18:43:58 stukreit Exp $ */ /* $XdotOrg: xc/programs/Xserver/dix/window.c,v 1.4 2004/07/29 23:43:39 kem Exp $ */
/* $Xorg: window.c,v 1.4 2001/02/09 02:04:41 xorgcvs Exp $ */ /* $Xorg: window.c,v 1.4 2001/02/09 02:04:41 xorgcvs Exp $ */
/* /*
@ -3154,15 +3154,15 @@ HandleSaveSet(client)
{ {
pWin = SaveSetWindow(client->saveSet[j]); pWin = SaveSetWindow(client->saveSet[j]);
#ifdef XFIXES #ifdef XFIXES
if (SaveSetToRoot(client->saveSet[j])) if (SaveSetToRoot(client->saveSet[j]))
pParent = WindowTable[pWin->drawable.pScreen->myNum]; pParent = WindowTable[pWin->drawable.pScreen->myNum];
else else
#endif #endif
{ {
pParent = pWin->parent; pParent = pWin->parent;
while (pParent && (wClient (pParent) == client)) while (pParent && (wClient (pParent) == client))
pParent = pParent->parent; pParent = pParent->parent;
} }
if (pParent) if (pParent)
{ {
if (pParent != pWin->parent) if (pParent != pWin->parent)
@ -3174,7 +3174,10 @@ HandleSaveSet(client)
if(!pWin->realized && pWin->mapped) if(!pWin->realized && pWin->mapped)
pWin->mapped = FALSE; pWin->mapped = FALSE;
} }
MapWindow(pWin, client); #ifdef XFIXES
if (SaveSetRemap (client->saveSet[j]))
#endif
MapWindow(pWin, client);
} }
} }
xfree(client->saveSet); xfree(client->saveSet);