dix: FIXES is not optional
It's already not optional at configure time, this just makes it so at build time too. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
dff81687f5
commit
abbd85742a
|
@ -53,9 +53,7 @@ Equipment Corporation.
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "picturestr.h"
|
#include "picturestr.h"
|
||||||
#ifdef XFIXES
|
|
||||||
#include "xfixesint.h"
|
#include "xfixesint.h"
|
||||||
#endif
|
|
||||||
#ifdef COMPOSITE
|
#ifdef COMPOSITE
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -583,9 +581,7 @@ PanoramiXExtensionInit(void)
|
||||||
ProcVector[X_StoreNamedColor] = PanoramiXStoreNamedColor;
|
ProcVector[X_StoreNamedColor] = PanoramiXStoreNamedColor;
|
||||||
|
|
||||||
PanoramiXRenderInit();
|
PanoramiXRenderInit();
|
||||||
#ifdef XFIXES
|
|
||||||
PanoramiXFixesInit();
|
PanoramiXFixesInit();
|
||||||
#endif
|
|
||||||
#ifdef COMPOSITE
|
#ifdef COMPOSITE
|
||||||
PanoramiXCompositeInit();
|
PanoramiXCompositeInit();
|
||||||
#endif
|
#endif
|
||||||
|
@ -890,9 +886,7 @@ PanoramiXResetProc(ExtensionEntry * extEntry)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
PanoramiXRenderReset();
|
PanoramiXRenderReset();
|
||||||
#ifdef XFIXES
|
|
||||||
PanoramiXFixesReset();
|
PanoramiXFixesReset();
|
||||||
#endif
|
|
||||||
#ifdef COMPOSITE
|
#ifdef COMPOSITE
|
||||||
PanoramiXCompositeReset ();
|
PanoramiXCompositeReset ();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -71,9 +71,7 @@ static GlyphSharePtr sharedGlyphs = (GlyphSharePtr) NULL;
|
||||||
|
|
||||||
DevScreenPrivateKeyRec cursorScreenDevPriv;
|
DevScreenPrivateKeyRec cursorScreenDevPriv;
|
||||||
|
|
||||||
#ifdef XFIXES
|
|
||||||
static CARD32 cursorSerial;
|
static CARD32 cursorSerial;
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
FreeCursorBits(CursorBitsPtr bits)
|
FreeCursorBits(CursorBitsPtr bits)
|
||||||
|
@ -272,10 +270,8 @@ AllocARGBCursor(unsigned char *psrcbits, unsigned char *pmaskbits,
|
||||||
bits->refcnt = -1;
|
bits->refcnt = -1;
|
||||||
CheckForEmptyMask(bits);
|
CheckForEmptyMask(bits);
|
||||||
pCurs->bits = bits;
|
pCurs->bits = bits;
|
||||||
#ifdef XFIXES
|
|
||||||
pCurs->serialNumber = ++cursorSerial;
|
pCurs->serialNumber = ++cursorSerial;
|
||||||
pCurs->name = None;
|
pCurs->name = None;
|
||||||
#endif
|
|
||||||
|
|
||||||
pCurs->foreRed = foreRed;
|
pCurs->foreRed = foreRed;
|
||||||
pCurs->foreGreen = foreGreen;
|
pCurs->foreGreen = foreGreen;
|
||||||
|
@ -433,10 +429,8 @@ AllocGlyphCursor(Font source, unsigned sourceChar, Font mask, unsigned maskChar,
|
||||||
CheckForEmptyMask(bits);
|
CheckForEmptyMask(bits);
|
||||||
pCurs->bits = bits;
|
pCurs->bits = bits;
|
||||||
pCurs->refcnt = 1;
|
pCurs->refcnt = 1;
|
||||||
#ifdef XFIXES
|
|
||||||
pCurs->serialNumber = ++cursorSerial;
|
pCurs->serialNumber = ++cursorSerial;
|
||||||
pCurs->name = None;
|
pCurs->name = None;
|
||||||
#endif
|
|
||||||
|
|
||||||
pCurs->foreRed = foreRed;
|
pCurs->foreRed = foreRed;
|
||||||
pCurs->foreGreen = foreGreen;
|
pCurs->foreGreen = foreGreen;
|
||||||
|
|
|
@ -2847,11 +2847,9 @@ HandleSaveSet(ClientPtr client)
|
||||||
|
|
||||||
for (j = 0; j < client->numSaved; j++) {
|
for (j = 0; j < client->numSaved; j++) {
|
||||||
pWin = SaveSetWindow(client->saveSet[j]);
|
pWin = SaveSetWindow(client->saveSet[j]);
|
||||||
#ifdef XFIXES
|
|
||||||
if (SaveSetToRoot(client->saveSet[j]))
|
if (SaveSetToRoot(client->saveSet[j]))
|
||||||
pParent = pWin->drawable.pScreen->root;
|
pParent = pWin->drawable.pScreen->root;
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
pParent = pWin->parent;
|
pParent = pWin->parent;
|
||||||
while (pParent && (wClient(pParent) == client))
|
while (pParent && (wClient(pParent) == client))
|
||||||
|
@ -2859,11 +2857,9 @@ HandleSaveSet(ClientPtr client)
|
||||||
}
|
}
|
||||||
if (pParent) {
|
if (pParent) {
|
||||||
if (pParent != pWin->parent) {
|
if (pParent != pWin->parent) {
|
||||||
#ifdef XFIXES
|
|
||||||
/* unmap first so that ReparentWindow doesn't remap */
|
/* unmap first so that ReparentWindow doesn't remap */
|
||||||
if (!SaveSetShouldMap(client->saveSet[j]))
|
if (!SaveSetShouldMap(client->saveSet[j]))
|
||||||
UnmapWindow(pWin, FALSE);
|
UnmapWindow(pWin, FALSE);
|
||||||
#endif
|
|
||||||
ReparentWindow(pWin, pParent,
|
ReparentWindow(pWin, pParent,
|
||||||
pWin->drawable.x - wBorderWidth(pWin) -
|
pWin->drawable.x - wBorderWidth(pWin) -
|
||||||
pParent->drawable.x,
|
pParent->drawable.x,
|
||||||
|
@ -2872,9 +2868,7 @@ HandleSaveSet(ClientPtr client)
|
||||||
if (!pWin->realized && pWin->mapped)
|
if (!pWin->realized && pWin->mapped)
|
||||||
pWin->mapped = FALSE;
|
pWin->mapped = FALSE;
|
||||||
}
|
}
|
||||||
#ifdef XFIXES
|
|
||||||
if (SaveSetShouldMap(client->saveSet[j]))
|
if (SaveSetShouldMap(client->saveSet[j]))
|
||||||
#endif
|
|
||||||
MapWindow(pWin, client);
|
MapWindow(pWin, client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,10 +78,8 @@ typedef struct _Cursor {
|
||||||
int refcnt;
|
int refcnt;
|
||||||
PrivateRec *devPrivates; /* set by pScr->RealizeCursor */
|
PrivateRec *devPrivates; /* set by pScr->RealizeCursor */
|
||||||
XID id;
|
XID id;
|
||||||
#ifdef XFIXES
|
|
||||||
CARD32 serialNumber;
|
CARD32 serialNumber;
|
||||||
Atom name;
|
Atom name;
|
||||||
#endif
|
|
||||||
} CursorRec;
|
} CursorRec;
|
||||||
|
|
||||||
#define CURSOR_REC_SIZE (sizeof(CursorRec) + dixPrivatesSize(PRIVATE_CURSOR))
|
#define CURSOR_REC_SIZE (sizeof(CursorRec) + dixPrivatesSize(PRIVATE_CURSOR))
|
||||||
|
|
|
@ -61,7 +61,6 @@ typedef enum { ClientStateInitial,
|
||||||
ClientStateGone
|
ClientStateGone
|
||||||
} ClientState;
|
} ClientState;
|
||||||
|
|
||||||
#ifdef XFIXES
|
|
||||||
typedef struct _saveSet {
|
typedef struct _saveSet {
|
||||||
struct _Window *windowPtr;
|
struct _Window *windowPtr;
|
||||||
Bool toRoot;
|
Bool toRoot;
|
||||||
|
@ -73,16 +72,6 @@ typedef struct _saveSet {
|
||||||
#define SaveSetAssignWindow(ss,w) ((ss).windowPtr = (w))
|
#define SaveSetAssignWindow(ss,w) ((ss).windowPtr = (w))
|
||||||
#define SaveSetAssignToRoot(ss,tr) ((ss).toRoot = (tr))
|
#define SaveSetAssignToRoot(ss,tr) ((ss).toRoot = (tr))
|
||||||
#define SaveSetAssignMap(ss,m) ((ss).map = (m))
|
#define SaveSetAssignMap(ss,m) ((ss).map = (m))
|
||||||
#else
|
|
||||||
typedef struct _Window *SaveSetElt;
|
|
||||||
|
|
||||||
#define SaveSetWindow(ss) (ss)
|
|
||||||
#define SaveSetToRoot(ss) FALSE
|
|
||||||
#define SaveSetShouldMap(ss) TRUE
|
|
||||||
#define SaveSetAssignWindow(ss,w) ((ss) = (w))
|
|
||||||
#define SaveSetAssignToRoot(ss,tr)
|
|
||||||
#define SaveSetAssignMap(ss,m)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _Client {
|
typedef struct _Client {
|
||||||
pointer requestBuffer;
|
pointer requestBuffer;
|
||||||
|
|
|
@ -140,10 +140,8 @@ extern void XFree86BigfontExtensionInit(void);
|
||||||
|
|
||||||
extern void BigReqExtensionInit(void);
|
extern void BigReqExtensionInit(void);
|
||||||
|
|
||||||
#ifdef XFIXES
|
|
||||||
extern _X_EXPORT Bool noXFixesExtension;
|
extern _X_EXPORT Bool noXFixesExtension;
|
||||||
extern void XFixesExtensionInit(void);
|
extern void XFixesExtensionInit(void);
|
||||||
#endif
|
|
||||||
|
|
||||||
extern void XInputExtensionInit(void);
|
extern void XInputExtensionInit(void);
|
||||||
extern _X_EXPORT void AssignTypeAndName(DeviceIntPtr dev,
|
extern _X_EXPORT void AssignTypeAndName(DeviceIntPtr dev,
|
||||||
|
|
|
@ -86,7 +86,6 @@ SOFTWARE.
|
||||||
#undef DBE
|
#undef DBE
|
||||||
#undef SCREENSAVER
|
#undef SCREENSAVER
|
||||||
#undef RANDR
|
#undef RANDR
|
||||||
#undef XFIXES
|
|
||||||
#undef DAMAGE
|
#undef DAMAGE
|
||||||
#undef COMPOSITE
|
#undef COMPOSITE
|
||||||
#undef MITSHM
|
#undef MITSHM
|
||||||
|
@ -168,9 +167,7 @@ static ExtensionToggle ExtensionToggleList[] = {
|
||||||
{"XFree86-VidModeExtension", &noXFree86VidModeExtension},
|
{"XFree86-VidModeExtension", &noXFree86VidModeExtension},
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef XFIXES
|
|
||||||
{"XFIXES", &noXFixesExtension},
|
{"XFIXES", &noXFixesExtension},
|
||||||
#endif
|
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
{"XINERAMA", &noPanoramiXExtension},
|
{"XINERAMA", &noPanoramiXExtension},
|
||||||
#endif
|
#endif
|
||||||
|
@ -263,10 +260,8 @@ static ExtensionModule staticExtensions[] = {
|
||||||
*/
|
*/
|
||||||
{PseudoramiXExtensionInit, "PseudoramiX", &noPseudoramiXExtension},
|
{PseudoramiXExtensionInit, "PseudoramiX", &noPseudoramiXExtension},
|
||||||
#endif
|
#endif
|
||||||
#ifdef XFIXES
|
|
||||||
/* must be before Render to layer DisplayCursor correctly */
|
/* must be before Render to layer DisplayCursor correctly */
|
||||||
{XFixesExtensionInit, "XFIXES", &noXFixesExtension},
|
{XFixesExtensionInit, "XFIXES", &noXFixesExtension},
|
||||||
#endif
|
|
||||||
#ifdef XF86BIGFONT
|
#ifdef XF86BIGFONT
|
||||||
{XFree86BigfontExtensionInit, XF86BIGFONTNAME, &noXFree86BigfontExtension},
|
{XFree86BigfontExtensionInit, XF86BIGFONTNAME, &noXFree86BigfontExtension},
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -169,9 +169,7 @@ Bool noXFree86DRIExtension = FALSE;
|
||||||
#ifdef XF86VIDMODE
|
#ifdef XF86VIDMODE
|
||||||
Bool noXFree86VidModeExtension = FALSE;
|
Bool noXFree86VidModeExtension = FALSE;
|
||||||
#endif
|
#endif
|
||||||
#ifdef XFIXES
|
|
||||||
Bool noXFixesExtension = FALSE;
|
Bool noXFixesExtension = FALSE;
|
||||||
#endif
|
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
/* Xinerama is disabled by default unless enabled via +xinerama */
|
/* Xinerama is disabled by default unless enabled via +xinerama */
|
||||||
Bool noPanoramiXExtension = TRUE;
|
Bool noPanoramiXExtension = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue