oops
This commit is contained in:
parent
f0336f18ee
commit
d1e52f13ad
12
Xext/shape.c
12
Xext/shape.c
|
@ -61,7 +61,7 @@ static int ShapeFreeEvents(
|
||||||
pointer /* data */,
|
pointer /* data */,
|
||||||
XID /* id */
|
XID /* id */
|
||||||
);
|
);
|
||||||
void SendShapeNotify(
|
static void SendShapeNotify(
|
||||||
WindowPtr /* pWin */,
|
WindowPtr /* pWin */,
|
||||||
int /* which */
|
int /* which */
|
||||||
);
|
);
|
||||||
|
@ -87,8 +87,8 @@ RegionOperate (
|
||||||
|
|
||||||
#define CREATE_PROC(func) RegionPtr func(WindowPtr /* pWin */)
|
#define CREATE_PROC(func) RegionPtr func(WindowPtr /* pWin */)
|
||||||
|
|
||||||
CREATE_PROC(CreateBoundingShape);
|
static CREATE_PROC(CreateBoundingShape);
|
||||||
CREATE_PROC(CreateClipShape);
|
static CREATE_PROC(CreateClipShape);
|
||||||
|
|
||||||
#undef CREATE_PROC
|
#undef CREATE_PROC
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ RegionOperate (client, pWin, kind, destRgnp, srcRgn, op, xoff, yoff, create)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
RegionPtr
|
static RegionPtr
|
||||||
CreateBoundingShape (pWin)
|
CreateBoundingShape (pWin)
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
{
|
{
|
||||||
|
@ -274,7 +274,7 @@ CreateBoundingShape (pWin)
|
||||||
return REGION_CREATE(pWin->drawable.pScreen, &extents, 1);
|
return REGION_CREATE(pWin->drawable.pScreen, &extents, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
RegionPtr
|
static RegionPtr
|
||||||
CreateClipShape (pWin)
|
CreateClipShape (pWin)
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
{
|
{
|
||||||
|
@ -880,7 +880,7 @@ ProcShapeSelectInput (client)
|
||||||
* deliver the event
|
* deliver the event
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
static void
|
||||||
SendShapeNotify (pWin, which)
|
SendShapeNotify (pWin, which)
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
int which;
|
int which;
|
||||||
|
|
|
@ -77,18 +77,10 @@ typedef struct _Cursor {
|
||||||
unsigned short backRed, backGreen, backBlue; /* device-independent color */
|
unsigned short backRed, backGreen, backBlue; /* device-independent color */
|
||||||
int refcnt;
|
int refcnt;
|
||||||
pointer devPriv[MAXSCREENS]; /* set by pScr->RealizeCursor*/
|
pointer devPriv[MAXSCREENS]; /* set by pScr->RealizeCursor*/
|
||||||
#ifdef XFIXES
|
|
||||||
CARD32 serialNumber;
|
|
||||||
Atom name;
|
|
||||||
#endif
|
|
||||||
} CursorRec;
|
} CursorRec;
|
||||||
|
|
||||||
typedef struct _CursorMetric {
|
typedef struct _CursorMetric {
|
||||||
unsigned short width, height, xhot, yhot;
|
unsigned short width, height, xhot, yhot;
|
||||||
} CursorMetricRec;
|
} CursorMetricRec;
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
int x, y;
|
|
||||||
ScreenPtr pScreen;
|
|
||||||
} HotSpot;
|
|
||||||
#endif /* CURSORSTRUCT_H */
|
#endif /* CURSORSTRUCT_H */
|
||||||
|
|
|
@ -379,12 +379,6 @@ extern void CopyISOLatin1Lowered(
|
||||||
unsigned char * /*source*/,
|
unsigned char * /*source*/,
|
||||||
int /*length*/);
|
int /*length*/);
|
||||||
|
|
||||||
extern int CompareISOLatin1Lowered(
|
|
||||||
unsigned char * /*a*/,
|
|
||||||
int alen,
|
|
||||||
unsigned char * /*b*/,
|
|
||||||
int blen);
|
|
||||||
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
|
|
||||||
extern WindowPtr SecurityLookupWindow(
|
extern WindowPtr SecurityLookupWindow(
|
||||||
|
@ -429,14 +423,12 @@ extern ClientPtr LookupClient(
|
||||||
|
|
||||||
extern void NoopDDA(void);
|
extern void NoopDDA(void);
|
||||||
|
|
||||||
int AlterSaveSetForClient(
|
extern int AlterSaveSetForClient(
|
||||||
ClientPtr /*client*/,
|
ClientPtr /*client*/,
|
||||||
WindowPtr /*pWin*/,
|
WindowPtr /*pWin*/,
|
||||||
unsigned /*mode*/,
|
unsigned /*mode*/);
|
||||||
Bool /*toRoot*/,
|
|
||||||
Bool /*remap*/);
|
extern void DeleteWindowFromAnySaveSet(
|
||||||
|
|
||||||
void DeleteWindowFromAnySaveSet(
|
|
||||||
WindowPtr /*pWin*/);
|
WindowPtr /*pWin*/);
|
||||||
|
|
||||||
extern void BlockHandler(
|
extern void BlockHandler(
|
||||||
|
@ -793,21 +785,4 @@ typedef struct {
|
||||||
int count;
|
int count;
|
||||||
} DeviceEventInfoRec;
|
} DeviceEventInfoRec;
|
||||||
|
|
||||||
/*
|
|
||||||
* SelectionCallback stuff
|
|
||||||
*/
|
|
||||||
|
|
||||||
extern CallbackListPtr SelectionCallback;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
SelectionSetOwner,
|
|
||||||
SelectionWindowDestroy,
|
|
||||||
SelectionClientClose
|
|
||||||
} SelectionCallbackKind;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
struct _Selection *selection;
|
|
||||||
SelectionCallbackKind kind;
|
|
||||||
} SelectionInfoRec;
|
|
||||||
|
|
||||||
#endif /* DIX_H */
|
#endif /* DIX_H */
|
||||||
|
|
|
@ -68,28 +68,6 @@ typedef enum {ClientStateInitial,
|
||||||
ClientStateCheckingSecurity,
|
ClientStateCheckingSecurity,
|
||||||
ClientStateCheckedSecurity} ClientState;
|
ClientStateCheckedSecurity} ClientState;
|
||||||
|
|
||||||
#ifdef XFIXES
|
|
||||||
typedef struct _saveSet {
|
|
||||||
struct _Window *windowPtr;
|
|
||||||
Bool toRoot;
|
|
||||||
Bool remap;
|
|
||||||
} SaveSetElt;
|
|
||||||
#define SaveSetWindow(ss) ((ss).windowPtr)
|
|
||||||
#define SaveSetToRoot(ss) ((ss).toRoot)
|
|
||||||
#define SaveSetRemap(ss) ((ss).remap)
|
|
||||||
#define SaveSetAssignWindow(ss,w) ((ss).windowPtr = (w))
|
|
||||||
#define SaveSetAssignToRoot(ss,tr) ((ss).toRoot = (tr))
|
|
||||||
#define SaveSetAssignRemap(ss,rm) ((ss).remap = (rm))
|
|
||||||
#else
|
|
||||||
typedef struct _Window *SaveSetElt;
|
|
||||||
#define SaveSetWindow(ss) (ss)
|
|
||||||
#define SaveSetToRoot(ss) FALSE
|
|
||||||
#define SaveSetRemap(ss) TRUE
|
|
||||||
#define SaveSetAssignWindow(ss,w) ((ss) = (w))
|
|
||||||
#define SaveSetAssignToRoot(ss,tr)
|
|
||||||
#define SaveSetAssignRemap(ss,rm)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _Client {
|
typedef struct _Client {
|
||||||
int index;
|
int index;
|
||||||
Mask clientAsMask;
|
Mask clientAsMask;
|
||||||
|
@ -107,7 +85,7 @@ typedef struct _Client {
|
||||||
Drawable lastDrawableID;
|
Drawable lastDrawableID;
|
||||||
GCPtr lastGC;
|
GCPtr lastGC;
|
||||||
GContext lastGCID;
|
GContext lastGCID;
|
||||||
SaveSetElt *saveSet;
|
pointer *saveSet;
|
||||||
int numSaved;
|
int numSaved;
|
||||||
pointer screenPrivate[MAXSCREENS];
|
pointer screenPrivate[MAXSCREENS];
|
||||||
int (**requestVector) (
|
int (**requestVector) (
|
||||||
|
@ -170,8 +148,8 @@ extern Bool SmartScheduleDisable;
|
||||||
extern Bool SmartScheduleIdle;
|
extern Bool SmartScheduleIdle;
|
||||||
extern Bool SmartScheduleTimerStopped;
|
extern Bool SmartScheduleTimerStopped;
|
||||||
extern Bool SmartScheduleStartTimer(void);
|
extern Bool SmartScheduleStartTimer(void);
|
||||||
#define SMART_MAX_PRIORITY 20
|
#define SMART_MAX_PRIORITY (20)
|
||||||
#define SMART_MIN_PRIORITY -20
|
#define SMART_MIN_PRIORITY (-20)
|
||||||
|
|
||||||
extern Bool SmartScheduleInit(void);
|
extern Bool SmartScheduleInit(void);
|
||||||
|
|
||||||
|
|
|
@ -92,17 +92,6 @@ typedef void (*ProcessInputProc)(
|
||||||
DeviceIntPtr /*device*/,
|
DeviceIntPtr /*device*/,
|
||||||
int /*count*/);
|
int /*count*/);
|
||||||
|
|
||||||
typedef Bool (*DeviceHandleProc)(
|
|
||||||
DeviceIntPtr /*device*/,
|
|
||||||
void* /*data*/
|
|
||||||
);
|
|
||||||
|
|
||||||
typedef void (*DeviceUnwrapProc)(
|
|
||||||
DeviceIntPtr /*device*/,
|
|
||||||
DeviceHandleProc /*proc*/,
|
|
||||||
void* /*data*/
|
|
||||||
);
|
|
||||||
|
|
||||||
typedef struct _DeviceRec {
|
typedef struct _DeviceRec {
|
||||||
pointer devicePrivate;
|
pointer devicePrivate;
|
||||||
ProcessInputProc processInputProc; /* current */
|
ProcessInputProc processInputProc; /* current */
|
||||||
|
@ -156,10 +145,6 @@ typedef struct {
|
||||||
unsigned char id;
|
unsigned char id;
|
||||||
} LedCtrl;
|
} LedCtrl;
|
||||||
|
|
||||||
extern int AllocateDevicePrivateIndex(void);
|
|
||||||
extern Bool AllocateDevicePrivate(DeviceIntPtr device, int index);
|
|
||||||
extern void ResetDevicePrivateIndex(void);
|
|
||||||
|
|
||||||
extern KeybdCtrl defaultKeyboardControl;
|
extern KeybdCtrl defaultKeyboardControl;
|
||||||
extern PtrCtrl defaultPointerControl;
|
extern PtrCtrl defaultPointerControl;
|
||||||
|
|
||||||
|
|
|
@ -95,84 +95,81 @@ extern RegDataRec miBrokenData;
|
||||||
#define REGION_END(reg) REGION_BOX(reg, (reg)->data->numRects - 1)
|
#define REGION_END(reg) REGION_BOX(reg, (reg)->data->numRects - 1)
|
||||||
#define REGION_SZOF(n) (sizeof(RegDataRec) + ((n) * sizeof(BoxRec)))
|
#define REGION_SZOF(n) (sizeof(RegDataRec) + ((n) * sizeof(BoxRec)))
|
||||||
|
|
||||||
/* Keith recommends weaning the region code of pScreen argument */
|
|
||||||
#define REG_pScreen screenInfo.screens[0]
|
|
||||||
|
|
||||||
#ifdef NEED_SCREEN_REGIONS
|
#ifdef NEED_SCREEN_REGIONS
|
||||||
|
|
||||||
#define REGION_CREATE(_pScreen, _rect, _size) \
|
#define REGION_CREATE(_pScreen, _rect, _size) \
|
||||||
(*(REG_pScreen)->RegionCreate)(_rect, _size)
|
(*(_pScreen)->RegionCreate)(_rect, _size)
|
||||||
|
|
||||||
#define REGION_INIT(_pScreen, _pReg, _rect, _size) \
|
#define REGION_INIT(_pScreen, _pReg, _rect, _size) \
|
||||||
(*(REG_pScreen)->RegionInit)(_pReg, _rect, _size)
|
(*(_pScreen)->RegionInit)(_pReg, _rect, _size)
|
||||||
|
|
||||||
#define REGION_COPY(_pScreen, dst, src) \
|
#define REGION_COPY(_pScreen, dst, src) \
|
||||||
(*(REG_pScreen)->RegionCopy)(dst, src)
|
(*(_pScreen)->RegionCopy)(dst, src)
|
||||||
|
|
||||||
#define REGION_DESTROY(_pScreen, _pReg) \
|
#define REGION_DESTROY(_pScreen, _pReg) \
|
||||||
(*(REG_pScreen)->RegionDestroy)(_pReg)
|
(*(_pScreen)->RegionDestroy)(_pReg)
|
||||||
|
|
||||||
#define REGION_UNINIT(_pScreen, _pReg) \
|
#define REGION_UNINIT(_pScreen, _pReg) \
|
||||||
(*(REG_pScreen)->RegionUninit)(_pReg)
|
(*(_pScreen)->RegionUninit)(_pReg)
|
||||||
|
|
||||||
#define REGION_INTERSECT(_pScreen, newReg, reg1, reg2) \
|
#define REGION_INTERSECT(_pScreen, newReg, reg1, reg2) \
|
||||||
(*(REG_pScreen)->Intersect)(newReg, reg1, reg2)
|
(*(_pScreen)->Intersect)(newReg, reg1, reg2)
|
||||||
|
|
||||||
#define REGION_UNION(_pScreen, newReg, reg1, reg2) \
|
#define REGION_UNION(_pScreen, newReg, reg1, reg2) \
|
||||||
(*(REG_pScreen)->Union)(newReg, reg1, reg2)
|
(*(_pScreen)->Union)(newReg, reg1, reg2)
|
||||||
|
|
||||||
#define REGION_SUBTRACT(_pScreen, newReg, reg1, reg2) \
|
#define REGION_SUBTRACT(_pScreen, newReg, reg1, reg2) \
|
||||||
(*(REG_pScreen)->Subtract)(newReg, reg1, reg2)
|
(*(_pScreen)->Subtract)(newReg, reg1, reg2)
|
||||||
|
|
||||||
#define REGION_INVERSE(_pScreen, newReg, reg1, invRect) \
|
#define REGION_INVERSE(_pScreen, newReg, reg1, invRect) \
|
||||||
(*(REG_pScreen)->Inverse)(newReg, reg1, invRect)
|
(*(_pScreen)->Inverse)(newReg, reg1, invRect)
|
||||||
|
|
||||||
#define REGION_RESET(_pScreen, _pReg, _pBox) \
|
#define REGION_RESET(_pScreen, _pReg, _pBox) \
|
||||||
(*(REG_pScreen)->RegionReset)(_pReg, _pBox)
|
(*(_pScreen)->RegionReset)(_pReg, _pBox)
|
||||||
|
|
||||||
#define REGION_TRANSLATE(_pScreen, _pReg, _x, _y) \
|
#define REGION_TRANSLATE(_pScreen, _pReg, _x, _y) \
|
||||||
(*(REG_pScreen)->TranslateRegion)(_pReg, _x, _y)
|
(*(_pScreen)->TranslateRegion)(_pReg, _x, _y)
|
||||||
|
|
||||||
#define RECT_IN_REGION(_pScreen, _pReg, prect) \
|
#define RECT_IN_REGION(_pScreen, _pReg, prect) \
|
||||||
(*(REG_pScreen)->RectIn)(_pReg, prect)
|
(*(_pScreen)->RectIn)(_pReg, prect)
|
||||||
|
|
||||||
#define POINT_IN_REGION(_pScreen, _pReg, _x, _y, prect) \
|
#define POINT_IN_REGION(_pScreen, _pReg, _x, _y, prect) \
|
||||||
(*(REG_pScreen)->PointInRegion)(_pReg, _x, _y, prect)
|
(*(_pScreen)->PointInRegion)(_pReg, _x, _y, prect)
|
||||||
|
|
||||||
#define REGION_NOTEMPTY(_pScreen, _pReg) \
|
#define REGION_NOTEMPTY(_pScreen, _pReg) \
|
||||||
(*(REG_pScreen)->RegionNotEmpty)(_pReg)
|
(*(_pScreen)->RegionNotEmpty)(_pReg)
|
||||||
|
|
||||||
#define REGION_EQUAL(_pScreen, _pReg1, _pReg2) \
|
#define REGION_EQUAL(_pScreen, _pReg1, _pReg2) \
|
||||||
(*(REG_pScreen)->RegionEqual)(_pReg1, _pReg2)
|
(*(_pScreen)->RegionEqual)(_pReg1, _pReg2)
|
||||||
|
|
||||||
#define REGION_BROKEN(_pScreen, _pReg) \
|
#define REGION_BROKEN(_pScreen, _pReg) \
|
||||||
(*(REG_pScreen)->RegionBroken)(_pReg)
|
(*(_pScreen)->RegionBroken)(_pReg)
|
||||||
|
|
||||||
#define REGION_BREAK(_pScreen, _pReg) \
|
#define REGION_BREAK(_pScreen, _pReg) \
|
||||||
(*(REG_pScreen)->RegionBreak)(_pReg)
|
(*(_pScreen)->RegionBreak)(_pReg)
|
||||||
|
|
||||||
#define REGION_EMPTY(_pScreen, _pReg) \
|
#define REGION_EMPTY(_pScreen, _pReg) \
|
||||||
(*(REG_pScreen)->RegionEmpty)(_pReg)
|
(*(_pScreen)->RegionEmpty)(_pReg)
|
||||||
|
|
||||||
#define REGION_EXTENTS(_pScreen, _pReg) \
|
#define REGION_EXTENTS(_pScreen, _pReg) \
|
||||||
(*(REG_pScreen)->RegionExtents)(_pReg)
|
(*(_pScreen)->RegionExtents)(_pReg)
|
||||||
|
|
||||||
#define REGION_APPEND(_pScreen, dstrgn, rgn) \
|
#define REGION_APPEND(_pScreen, dstrgn, rgn) \
|
||||||
(*(REG_pScreen)->RegionAppend)(dstrgn, rgn)
|
(*(_pScreen)->RegionAppend)(dstrgn, rgn)
|
||||||
|
|
||||||
#define REGION_VALIDATE(_pScreen, badreg, pOverlap) \
|
#define REGION_VALIDATE(_pScreen, badreg, pOverlap) \
|
||||||
(*(REG_pScreen)->RegionValidate)(badreg, pOverlap)
|
(*(_pScreen)->RegionValidate)(badreg, pOverlap)
|
||||||
|
|
||||||
#define BITMAP_TO_REGION(_pScreen, pPix) \
|
#define BITMAP_TO_REGION(_pScreen, pPix) \
|
||||||
(*(REG_pScreen)->BitmapToRegion)(pPix)
|
(*(_pScreen)->BitmapToRegion)(pPix)
|
||||||
|
|
||||||
#define RECTS_TO_REGION(_pScreen, nrects, prect, ctype) \
|
#define RECTS_TO_REGION(_pScreen, nrects, prect, ctype) \
|
||||||
(*(REG_pScreen)->RectsToRegion)(nrects, prect, ctype)
|
(*(_pScreen)->RectsToRegion)(nrects, prect, ctype)
|
||||||
|
|
||||||
#else /* !NEED_SCREEN_REGIONS */
|
#else /* !NEED_SCREEN_REGIONS */
|
||||||
|
|
||||||
/* Reference _pScreen macro argument and check its type */
|
/* Reference _pScreen macro argument and check its type */
|
||||||
#define REGION_SCREEN(_pScreen) (void)((REG_pScreen)->myNum)
|
#define REGION_SCREEN(_pScreen_) (void)((_pScreen_)->myNum)
|
||||||
|
|
||||||
#define REGION_CREATE(_pScreen, _rect, _size) \
|
#define REGION_CREATE(_pScreen, _rect, _size) \
|
||||||
(REGION_SCREEN(_pScreen), miRegionCreate(_rect, _size))
|
(REGION_SCREEN(_pScreen), miRegionCreate(_rect, _size))
|
||||||
|
|
|
@ -252,10 +252,4 @@ void ResizeChildrenWinSize(
|
||||||
int /*dw*/,
|
int /*dw*/,
|
||||||
int /*dh*/);
|
int /*dh*/);
|
||||||
|
|
||||||
RegionPtr
|
|
||||||
CreateBoundingShape (WindowPtr pWin);
|
|
||||||
|
|
||||||
RegionPtr
|
|
||||||
CreateClipShape (WindowPtr pWin);
|
|
||||||
|
|
||||||
#endif /* WINDOW_H */
|
#endif /* WINDOW_H */
|
||||||
|
|
Loading…
Reference in New Issue