(submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA

PANORAMIX was the original working title of the extension, before it became
official standard. Just nobody cared about fixing the symbols to the official
naming.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-01-24 20:04:37 +01:00
parent f327de8a4b
commit 59463b7a99
49 changed files with 269 additions and 269 deletions

View File

@ -51,10 +51,10 @@ in this Software without prior written authorization from the X Consortium.
#include "colormapst.h"
#include "xace.h"
#include "inputstr.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#ifdef DPMSExtension
#include <X11/extensions/dpmsconst.h>
#include "dpmsproc.h"
@ -584,9 +584,9 @@ ScreenSaverHandle(ScreenPtr pScreen, int xstate, Bool force)
ret = TRUE;
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension || !pScreen->myNum)
#endif
#endif /* XINERAMA */
SendScreenSaverNotify(pScreen, state, force);
return ret;
}
@ -1064,7 +1064,7 @@ ProcScreenSaverSetAttributes(ClientPtr client)
REQUEST(xScreenSaverSetAttributesReq);
REQUEST_AT_LEAST_SIZE(xScreenSaverSetAttributesReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
PanoramiXRes *draw;
PanoramiXRes *backPix = NULL;
@ -1140,7 +1140,7 @@ ProcScreenSaverSetAttributes(ClientPtr client)
return status;
}
#endif
#endif /* XINERAMA */
return ScreenSaverSetAttributes(client, stuff);
}
@ -1151,7 +1151,7 @@ ProcScreenSaverUnsetAttributes(ClientPtr client)
REQUEST(xScreenSaverUnsetAttributesReq);
REQUEST_SIZE_MATCH(xScreenSaverUnsetAttributesReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
PanoramiXRes *draw;
int rc, i;
@ -1168,7 +1168,7 @@ ProcScreenSaverUnsetAttributes(ClientPtr client)
stuff->drawable = draw->info[0].id;
}
#endif
#endif /* XINERAMA */
return ScreenSaverUnsetAttributes(client, stuff->drawable);
}

View File

@ -65,10 +65,10 @@ static void SShapeNotifyEvent(xShapeNotifyEvent * /* from */ ,
* externally by the Xfixes extension and are now defined in window.h
*/
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
Bool noShapeExtension = FALSE;
@ -297,7 +297,7 @@ ProcShapeRectangles(ClientPtr client)
REQUEST(xShapeRectanglesReq);
REQUEST_AT_LEAST_SIZE(xShapeRectanglesReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension)
return ShapeRectangles(client, stuff);
@ -393,7 +393,7 @@ ProcShapeMask(ClientPtr client)
REQUEST(xShapeMaskReq);
REQUEST_SIZE_MATCH(xShapeMaskReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension)
return ShapeMask(client, stuff);
@ -519,7 +519,7 @@ ProcShapeCombine(ClientPtr client)
REQUEST(xShapeCombineReq);
REQUEST_AT_LEAST_SIZE(xShapeCombineReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension)
return ShapeCombine(client, stuff);
@ -588,7 +588,7 @@ ProcShapeOffset(ClientPtr client)
REQUEST(xShapeOffsetReq);
REQUEST_AT_LEAST_SIZE(xShapeOffsetReq);
#ifdef PANORAMIX
#ifdef XINERAMA
PanoramiXRes *win;
int j, result;

View File

@ -89,10 +89,10 @@ in this Software without prior written authorization from The Open Group.
#define SHMPERM_MODE(p) p->mode
#endif
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
typedef struct _ShmScrPrivateRec {
CloseScreenProcPtr CloseScreen;
@ -742,7 +742,7 @@ ProcShmPutImage(ClientPtr client)
if (!client->local)
return BadRequest;
#ifdef PANORAMIX
#ifdef XINERAMA
int j, result, orig_x, orig_y;
PanoramiXRes *draw, *gc;
Bool sendEvent, isRoot;
@ -782,7 +782,7 @@ ProcShmPutImage(ClientPtr client)
return result;
#else
return ShmPutImage(client, stuff);
#endif /* PANORAMIX */
#endif /* XINERAMA */
}
static int
@ -794,7 +794,7 @@ ProcShmGetImage(ClientPtr client)
if (!client->local)
return BadRequest;
#ifdef PANORAMIX
#ifdef XINERAMA
PanoramiXRes *draw;
DrawablePtr *drawables;
DrawablePtr pDraw;
@ -932,7 +932,7 @@ ProcShmGetImage(ClientPtr client)
return Success;
#else
return ShmGetImage(client, stuff);
#endif /* PANORAMIX */
#endif /* XINERAMA */
}
static int
@ -944,7 +944,7 @@ ProcShmCreatePixmap(ClientPtr client)
if (!client->local)
return BadRequest;
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension)
return ShmCreatePixmap(client, stuff);
@ -1055,7 +1055,7 @@ ProcShmCreatePixmap(ClientPtr client)
return result;
#else
return ShmCreatePixmap(client, stuff);
#endif /* PANORAMIX */
#endif /* XINERAMA */
}
static PixmapPtr

View File

@ -79,10 +79,10 @@ static InternalEvent *xtest_evlist;
*/
DeviceIntPtr xtestpointer, xtestkeyboard;
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
static int XTestSwapFakeInput(ClientPtr /* client */ ,
xReq * /* req */

View File

@ -48,12 +48,12 @@ SOFTWARE.
#include "xvdisp.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
unsigned long XvXRTPort;
#endif
#endif /* XINERAMA */
static int
SWriteQueryExtensionReply(ClientPtr client, xvQueryExtensionReply * rep)
@ -485,7 +485,7 @@ static int XineramaXvPutVideo(ClientPtr client);
static int
ProcXvPutVideo(ClientPtr client)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (xvUseXinerama)
return XineramaXvPutVideo(client);
#endif
@ -527,7 +527,7 @@ static int XineramaXvPutStill(ClientPtr client);
static int
ProcXvPutStill(ClientPtr client)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (xvUseXinerama)
return XineramaXvPutStill(client);
#endif
@ -688,7 +688,7 @@ static int XineramaXvStopVideo(ClientPtr client);
static int
ProcXvStopVideo(ClientPtr client)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (xvUseXinerama)
return XineramaXvStopVideo(client);
#endif
@ -727,7 +727,7 @@ static int XineramaXvSetPortAttribute(ClientPtr client);
static int
ProcXvSetPortAttribute(ClientPtr client)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (xvUseXinerama)
return XineramaXvSetPortAttribute(client);
#endif
@ -905,7 +905,7 @@ XineramaXvPutImage(ClientPtr client);
static int
ProcXvPutImage(ClientPtr client)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (xvUseXinerama)
return XineramaXvPutImage(client);
#endif
@ -997,7 +997,7 @@ static int
ProcXvShmPutImage(ClientPtr client)
{
#ifdef MITSHM
#ifdef PANORAMIX
#ifdef XINERAMA
if (xvUseXinerama)
return XineramaXvShmPutImage(client);
#endif
@ -1496,7 +1496,7 @@ SProcXvDispatch(ClientPtr client)
}
}
#ifdef PANORAMIX
#ifdef XINERAMA
static int
XineramaXvStopVideo(ClientPtr client)
{
@ -1604,7 +1604,7 @@ XineramaXvShmPutImage(ClientPtr client)
}
#else
#define XineramaXvShmPutImage ProcXvShmPutImage
#endif
#endif /* MITSHM */
static int
XineramaXvPutImage(ClientPtr client)
@ -1853,4 +1853,4 @@ XineramifyXv(void)
xvUseXinerama = 1;
}
#endif /* PANORAMIX */
#endif /* XINERAMA */

View File

@ -96,10 +96,10 @@ SOFTWARE.
#include "opaque.h"
#include "input.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#include "xvdisp.h"
#define SCREEN_PROLOGUE(pScreen, field) ((pScreen)->field = ((XvScreenPtr) \
@ -176,9 +176,9 @@ XvExtensionInit(void)
ErrorF("XvExtensionInit: Unable to allocate resource types\n");
return;
}
#ifdef PANORAMIX
#ifdef XINERAMA
XineramaRegisterConnectionBlockCallback(XineramifyXv);
#endif
#endif /* XINERAMA */
XvScreenGeneration = serverGeneration;
}
@ -269,9 +269,9 @@ XvScreenInit(ScreenPtr pScreen)
ErrorF("XvScreenInit: Unable to allocate resource types\n");
return BadAlloc;
}
#ifdef PANORAMIX
#ifdef XINERAMA
XineramaRegisterConnectionBlockCallback(XineramifyXv);
#endif
#endif /* XINERAMA */
XvScreenGeneration = serverGeneration;
}

View File

@ -48,9 +48,9 @@
#include "scrnintstr.h"
#include "xkbsrv.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#include "inpututils.h"
#include "xiquerypointer.h"
@ -183,7 +183,7 @@ ProcXIQueryPointer(ClientPtr client)
rep.win_y = 0;
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
rep.root_x += double_to_fp1616(screenInfo.screens[0]->x);
rep.root_y += double_to_fp1616(screenInfo.screens[0]->y);
@ -192,7 +192,7 @@ ProcXIQueryPointer(ClientPtr client)
rep.win_y += double_to_fp1616(screenInfo.screens[0]->y);
}
}
#endif
#endif /* XINERAMA */
WriteReplyToClient(client, sizeof(xXIQueryPointerReply), &rep);
if (buttons)

View File

@ -572,7 +572,7 @@ CompositeExtensionInit(void)
noCompositeExtension = FALSE;
}
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiXsrv.h"
int (*PanoramiXSaveCompositeVector[CompositeNumberRequests]) (ClientPtr);
@ -925,4 +925,4 @@ PanoramiXCompositeReset(void)
ProcCompositeVector[i] = PanoramiXSaveCompositeVector[i];
}
#endif
#endif /* XINERAMA */

View File

@ -46,9 +46,9 @@
#include "compint.h"
#include "xace.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
/*
* Delete the given overlay client list element from its screen list.
@ -133,14 +133,14 @@ compCreateOverlayWindow(ScreenPtr pScreen)
int h = pScreen->height;
int x = 0, y = 0;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
x = -pScreen->x;
y = -pScreen->y;
w = PanoramiXPixWidth;
h = PanoramiXPixHeight;
}
#endif
#endif /* XINERAMA */
pWin = cs->pOverlayWin =
CreateWindow(cs->overlayWid, pRoot, x, y, w, h, 0,

View File

@ -49,9 +49,9 @@
#include "compint.h"
#include "compositeext_priv.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#ifdef COMPOSITE_DEBUG
static int
@ -201,12 +201,12 @@ updateOverlayWindow(ScreenPtr pScreen)
int w = pScreen->width;
int h = pScreen->height;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
w = PanoramiXPixWidth;
h = PanoramiXPixHeight;
}
#endif
#endif /* XINERAMA */
cs = GetCompScreen(pScreen);
if ((pWin = cs->pOverlayWin) != NULL) {

View File

@ -31,7 +31,7 @@
#include "protocol-versions.h"
#include "dixstruct_priv.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
@ -45,7 +45,7 @@ static int damageUseXinerama = 0;
static int PanoramiXDamageCreate(ClientPtr client, xDamageCreateReq *stuff);
#endif
#endif /* XINERAMA */
static unsigned char DamageReqCode;
static int DamageEventBase;
@ -72,7 +72,7 @@ DamageNoteCritical(ClientPtr pClient)
static void
damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && draw->type == DRAWABLE_WINDOW) {
WindowPtr win = (WindowPtr)draw;
@ -84,7 +84,7 @@ damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
return;
}
}
#endif
#endif /* XINERAMA */
*x = draw->x;
*y = draw->y;
@ -303,7 +303,7 @@ ProcDamageCreate(ClientPtr client)
REQUEST(xDamageCreateReq);
REQUEST_SIZE_MATCH(xDamageCreateReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (damageUseXinerama)
return PanoramiXDamageCreate(client, stuff);
#endif
@ -325,7 +325,7 @@ ProcDamageDestroy(ClientPtr client)
return Success;
}
#ifdef PANORAMIX
#ifdef XINERAMA
static RegionPtr
DamageExtSubtractWindowClip(DamageExtPtr pDamageExt)
{
@ -373,7 +373,7 @@ DamageExtFreeWindowClip(RegionPtr reg)
if (reg != &PanoramiXScreenRegion)
RegionDestroy(reg);
}
#endif
#endif /* XINERAMA */
/*
* DamageSubtract intersects with borderClip, so we must reconstruct the
@ -384,7 +384,7 @@ DamageExtSubtract(DamageExtPtr pDamageExt, const RegionPtr pRegion)
{
DamagePtr pDamage = pDamageExt->pDamage;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
RegionPtr damage = DamageRegion(pDamage);
RegionSubtract(damage, damage, pRegion);
@ -402,7 +402,7 @@ DamageExtSubtract(DamageExtPtr pDamageExt, const RegionPtr pRegion)
return RegionNotEmpty(damage);
}
#endif
#endif /* XINERAMA */
return DamageSubtract(pDamage, pRegion);
}
@ -592,7 +592,7 @@ SDamageNotifyEvent(xDamageNotifyEvent * from, xDamageNotifyEvent * to)
cpswaps(from->geometry.height, to->geometry.height);
}
#ifdef PANORAMIX
#ifdef XINERAMA
static void
PanoramiXDamageReport(DamagePtr pDamage, RegionPtr pRegion, void *closure)
@ -707,7 +707,7 @@ PanoramiXDamageReset(void)
damageUseXinerama = 0;
}
#endif /* PANORAMIX */
#endif /* XINERAMA */
void
DamageExtensionInit(void)
@ -736,10 +736,10 @@ DamageExtensionInit(void)
(EventSwapPtr) SDamageNotifyEvent;
SetResourceTypeErrorValue(DamageExtType,
extEntry->errorBase + BadDamage);
#ifdef PANORAMIX
#ifdef XINERAMA
if (XRT_DAMAGE)
SetResourceTypeErrorValue(XRT_DAMAGE,
extEntry->errorBase + BadDamage);
#endif
#endif /* XINERAMA */
}
}

View File

@ -1333,10 +1333,10 @@ DbeExtensionInit(void)
int nStubbedScreens = 0;
Bool ddxInitSuccess;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
return;
#endif
#endif /* XINERAMA */
/* Create the resource types. */
dbeDrawableResType =

View File

@ -471,9 +471,9 @@ TellNoMap(WindowPtr pwin, Colormap * pmid)
.u.colormap.state = ColormapUninstalled
};
xE.u.u.type = ColormapNotify;
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension || !pwin->drawable.pScreen->myNum)
#endif
#endif /* XINERAMA */
DeliverEvents(pwin, &xE, 1, (WindowPtr) NULL);
if (pwin->optional) {
pwin->optional->colormap = None;
@ -490,10 +490,10 @@ TellLostMap(WindowPtr pwin, void *value)
{
Colormap *pmid = (Colormap *) value;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && pwin->drawable.pScreen->myNum)
return WT_STOPWALKING;
#endif
#endif /* XINERAMA */
if (wColormap(pwin) == *pmid) {
/* This should be call to DeliverEvent */
xEvent xE = {
@ -515,10 +515,10 @@ TellGainedMap(WindowPtr pwin, void *value)
{
Colormap *pmid = (Colormap *) value;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && pwin->drawable.pScreen->myNum)
return WT_STOPWALKING;
#endif
#endif /* XINERAMA */
if (wColormap(pwin) == *pmid) {
/* This should be call to DeliverEvent */
xEvent xE = {

View File

@ -2639,9 +2639,9 @@ ProcAllocColor(ClientPtr client)
if ((rc = AllocColor(pmap, &acr.red, &acr.green, &acr.blue,
&acr.pixel, client->index)))
return rc;
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension || !pmap->pScreen->myNum)
#endif
#endif /* XINERAMA */
WriteReplyToClient(client, sizeof(xAllocColorReply), &acr);
return Success;
@ -2680,9 +2680,9 @@ ProcAllocNamedColor(ClientPtr client)
&ancr.screenRed, &ancr.screenGreen,
&ancr.screenBlue, &ancr.pixel, client->index)))
return rc;
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
#endif
#endif /* XINERAMA */
WriteReplyToClient(client, sizeof(xAllocNamedColorReply),
&ancr);
return Success;
@ -2734,9 +2734,9 @@ ProcAllocColorCells(ClientPtr client)
free(ppixels);
return rc;
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
#endif
#endif /* XINERAMA */
{
xAllocColorCellsReply accr = {
.type = X_Reply,
@ -2803,9 +2803,9 @@ ProcAllocColorPlanes(ClientPtr client)
return rc;
}
acpr.length = bytes_to_int32(length);
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
#endif
#endif /* XINERAMA */
{
WriteReplyToClient(client, sizeof(xAllocColorPlanesReply), &acpr);
client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
@ -3745,12 +3745,12 @@ SendConnSetup(ClientPtr client, const char *reason)
#endif
/* fill in the "currentInputMask" */
root = (xWindowRoot *) (lConnectionInfo + connBlockScreenStart);
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension)
numScreens = screenInfo.numScreens;
else
numScreens = ((xConnSetup *) ConnectionInfo)->numRoots;
#endif
#endif /* XINERAMA */
for (i = 0; i < numScreens; i++) {
unsigned int j;

View File

@ -1333,9 +1333,9 @@ doPolyText(ClientPtr client, PTclosurePtr c)
if (c->err != Success)
err = c->err;
if (err != Success && c->client != serverClient) {
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension || !c->pGC->pScreen->myNum)
#endif
#endif /* XINERAMA */
SendErrorToClient(c->client, c->reqType, 0, 0, err);
}
if (ClientIsAsleep(client)) {

View File

@ -1244,10 +1244,10 @@ CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev,
int i;
int nscreens = screenInfo.numScreens;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
nscreens = 1;
#endif
#endif /* XINERAMA */
for (i = 0; i < nscreens; i++) {
root = screenInfo.screens[i]->root;
@ -1288,10 +1288,10 @@ CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A,
int i;
int nscreens = screenInfo.numScreens;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
nscreens = 1;
#endif
#endif /* XINERAMA */
if (!HasFocus(A)) {
WindowPtr child = FirstFocusChild(A);
@ -1335,10 +1335,10 @@ CoreFocusFromPointerRootOrNone(DeviceIntPtr dev,
int i;
int nscreens = screenInfo.numScreens;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
nscreens = 1;
#endif
#endif /* XINERAMA */
for (i = 0; i < nscreens; i++) {
root = screenInfo.screens[i]->root;
@ -1425,10 +1425,10 @@ DeviceFocusEvents(DeviceIntPtr dev, WindowPtr from, WindowPtr to, int mode)
in = (to == NoneWin) ? NotifyDetailNone : NotifyPointerRoot;
/* wrong values if neither, but then not referenced */
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
nscreens = 1;
#endif
#endif /* XINERAMA */
if ((to == NullWindow) || (to == PointerRootWin)) {
if ((from == NullWindow) || (from == PointerRootWin)) {

View File

@ -128,10 +128,10 @@ Equipment Corporation.
#include "scrnintstr.h"
#include "cursorstr.h"
#include "dixstruct.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#include "globals.h"
#include "xace.h"
#include "probes.h"
@ -506,17 +506,17 @@ SyntheticMotion(DeviceIntPtr dev, int x, int y)
{
int screenno = 0;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
screenno = dev->spriteInfo->sprite->screen->myNum;
#endif
#endif /* XINERAMA */
PostSyntheticMotion(dev, x, y, screenno,
(syncEvents.playingEvents) ? syncEvents.time.
milliseconds : currentTime.milliseconds);
}
#ifdef PANORAMIX
#ifdef XINERAMA
static void PostNewCursor(DeviceIntPtr pDev);
static Bool
@ -651,7 +651,7 @@ XineramaConfineCursorToWindow(DeviceIntPtr pDev,
CheckPhysLimits(pDev, pSprite->current, generateEvents, FALSE, NULL);
}
#endif /* PANORAMIX */
#endif /* XINERAMA */
/**
* Modifies the filter for the given protocol event type to the given masks.
@ -727,12 +727,12 @@ CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents,
if (!cursor)
return;
new = pSprite->hotPhys;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
/* I don't care what the DDX has to say about it */
pSprite->physLimits = pSprite->hotLimits;
else
#endif
#endif /* XINERAMA */
{
if (pScreen)
new.pScreen = pScreen;
@ -756,16 +756,16 @@ CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents,
if (pSprite->hotShape)
ConfineToShape(pDev, pSprite->hotShape, &new.x, &new.y);
if ((
#ifdef PANORAMIX
#ifdef XINERAMA
noPanoramiXExtension &&
#endif
#endif /* XINERAMA */
(pScreen != pSprite->hotPhys.pScreen)) ||
(new.x != pSprite->hotPhys.x) || (new.y != pSprite->hotPhys.y)) {
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
XineramaSetCursorPosition(pDev, new.x, new.y, generateEvents);
else
#endif
#endif /* XINERAMA */
{
if (pScreen != pSprite->hotPhys.pScreen)
pSprite->hotPhys = new;
@ -776,11 +776,11 @@ CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents,
SyntheticMotion(pDev, new.x, new.y);
}
#ifdef PANORAMIX
#ifdef XINERAMA
/* Tell DDX what the limits are */
if (!noPanoramiXExtension)
XineramaConstrainCursor(pDev);
#endif
#endif /* XINERAMA */
}
static void
@ -814,7 +814,7 @@ CheckVirtualMotion(DeviceIntPtr pDev, QdEventPtr qe, WindowPtr pWin)
if (pWin) {
BoxRec lims;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
int x, y, off_x, off_y, i;
@ -842,7 +842,7 @@ CheckVirtualMotion(DeviceIntPtr pDev, QdEventPtr qe, WindowPtr pWin)
}
}
else
#endif
#endif /* XINERAMA */
{
if (pSprite->hot.pScreen != pWin->drawable.pScreen) {
pSprite->hot.pScreen = pWin->drawable.pScreen;
@ -860,14 +860,14 @@ CheckVirtualMotion(DeviceIntPtr pDev, QdEventPtr qe, WindowPtr pWin)
else if (pSprite->hot.y >= lims.y2)
pSprite->hot.y = lims.y2 - 1;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
if (RegionNumRects(&pSprite->Reg2) > 1)
reg = &pSprite->Reg2;
}
else
#endif
#endif /* XINERAMA */
{
if (wBoundingShape(pWin))
reg = &pWin->borderSize;
@ -882,9 +882,9 @@ CheckVirtualMotion(DeviceIntPtr pDev, QdEventPtr qe, WindowPtr pWin)
ev->root_y = pSprite->hot.y;
}
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension) /* No typo. Only set the root win if disabled */
#endif
#endif /* XINERAMA */
RootWindow(pDev->spriteInfo->sprite) = pSprite->hot.pScreen->root;
}
@ -901,12 +901,12 @@ ConfineCursorToWindow(DeviceIntPtr pDev, WindowPtr pWin, Bool generateEvents,
else {
ScreenPtr pScreen = pWin->drawable.pScreen;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
XineramaConfineCursorToWindow(pDev, pWin, generateEvents);
return;
}
#endif
#endif /* XINERAMA */
pSprite->hotLimits = *RegionExtents(&pWin->borderSize);
pSprite->hotShape = wBoundingShape(pWin) ? &pWin->borderSize
: NullRegion;
@ -942,12 +942,12 @@ ChangeToCursor(DeviceIntPtr pDev, CursorPtr cursor)
(pSprite->current->bits->yhot != cursor->bits->yhot))
CheckPhysLimits(pDev, cursor, FALSE, pSprite->confined,
(ScreenPtr) NULL);
#ifdef PANORAMIX
#ifdef XINERAMA
/* XXX: is this really necessary?? (whot) */
if (!noPanoramiXExtension)
pScreen = pSprite->screen;
else
#endif
#endif /* XINERAMA */
pScreen = pSprite->hotPhys.pScreen;
(*pScreen->DisplayCursor) (pDev, pScreen, cursor);
@ -1170,12 +1170,12 @@ EnqueueEvent(InternalEvent *ev, DeviceIntPtr device)
}
if (event->type == ET_Motion) {
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
event->root_x += pSprite->screen->x - screenInfo.screens[0]->x;
event->root_y += pSprite->screen->y - screenInfo.screens[0]->y;
}
#endif
#endif /* XINERAMA */
pSprite->hotPhys.x = event->root_x;
pSprite->hotPhys.y = event->root_y;
/* do motion compression, but not if from different devices */
@ -1233,7 +1233,7 @@ PlayReleasedEvents(void)
CheckVirtualMotion(pDev, qe, NullWindow);
syncEvents.time.months = qe->months;
syncEvents.time.milliseconds = qe->event->any.time;
#ifdef PANORAMIX
#ifdef XINERAMA
/* Translate back to the sprite screen since processInputProc
will translate from sprite screen to screen 0 upon reentry
to the DIX layer */
@ -1261,7 +1261,7 @@ PlayReleasedEvents(void)
}
}
#endif
#endif /* XINERAMA */
(*qe->device->public.processInputProc) (qe->event, qe->device);
free(qe);
for (dev = inputInfo.devices; dev && dev->deviceGrab.sync.frozen;
@ -2484,7 +2484,7 @@ DeliverRawEvent(RawDeviceEvent *ev, DeviceIntPtr device)
Only works for core events.
*/
#ifdef PANORAMIX
#ifdef XINERAMA
static int
XineramaTryClientEventsResult(ClientPtr client,
GrabPtr grab, Mask mask, Mask filter)
@ -2498,7 +2498,7 @@ XineramaTryClientEventsResult(ClientPtr client,
}
return 0;
}
#endif
#endif /* XINERAMA */
/**
* Try to deliver events to the interested parties.
@ -2518,11 +2518,11 @@ MaybeDeliverEventsToClient(WindowPtr pWin, xEvent *pEvents,
if (pWin->eventMask & filter) {
if (wClient(pWin) == dontClient)
return 0;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
return XineramaTryClientEventsResult(wClient(pWin), NullGrab,
pWin->eventMask, filter);
#endif
#endif /* XINERAMA */
if (XaceHookReceiveAccess(wClient(pWin), pWin, pEvents, count))
return 1; /* don't send, but pretend we did */
return TryClientEvents(wClient(pWin), NULL, pEvents, count,
@ -2532,11 +2532,11 @@ MaybeDeliverEventsToClient(WindowPtr pWin, xEvent *pEvents,
if (other->mask & filter) {
if (SameClient(other, dontClient))
return 0;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
return XineramaTryClientEventsResult(rClient(other), NullGrab,
other->mask, filter);
#endif
#endif /* XINERAMA */
if (XaceHookReceiveAccess(rClient(other), pWin, pEvents,
count))
return 1; /* don't send, but pretend we did */
@ -2909,10 +2909,10 @@ DeliverEvents(WindowPtr pWin, xEvent *xE, int count, WindowPtr otherParent)
DeviceIntRec dummy;
int deliveries;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
return count;
#endif
#endif /* XINERAMA */
if (!count)
return 0;
@ -2977,7 +2977,7 @@ PointInBorderSize(WindowPtr pWin, int x, int y)
if (RegionContainsPoint(&pWin->borderSize, x, y, &box))
return TRUE;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension &&
XineramaSetWindowPntrs(inputInfo.pointer, pWin)) {
SpritePtr pSprite = inputInfo.pointer->spriteInfo->sprite;
@ -2992,7 +2992,7 @@ PointInBorderSize(WindowPtr pWin, int x, int y)
return TRUE;
}
}
#endif
#endif /* XINERAMA */
return FALSE;
}
@ -3132,7 +3132,7 @@ CheckMotion(DeviceEvent *ev, DeviceIntPtr pDev)
return FALSE;
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
/* Motion events entering DIX get translated to Screen 0
coordinates. Replayed events have already been
@ -3141,7 +3141,7 @@ CheckMotion(DeviceEvent *ev, DeviceIntPtr pDev)
ev->root_y += pSprite->screen->y - screenInfo.screens[0]->y;
}
else
#endif
#endif /* XINERAMA */
{
if (pSprite->hot.pScreen != pSprite->hotPhys.pScreen) {
pSprite->hot.pScreen = pSprite->hotPhys.pScreen;
@ -3167,13 +3167,13 @@ CheckMotion(DeviceEvent *ev, DeviceIntPtr pDev)
if ((pSprite->hotPhys.x != ev->root_x) ||
(pSprite->hotPhys.y != ev->root_y)) {
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
XineramaSetCursorPosition(pDev, pSprite->hotPhys.x,
pSprite->hotPhys.y, FALSE);
}
else
#endif
#endif /* XINERAMA */
{
(*pSprite->hotPhys.pScreen->SetCursorPosition) (pDev,
pSprite->
@ -3330,7 +3330,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
pSprite->hot.y, FALSE);
(*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current);
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
pSprite->hotLimits.x1 = -screenInfo.screens[0]->x;
pSprite->hotLimits.y1 = -screenInfo.screens[0]->y;
@ -3344,7 +3344,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
RegionNull(&pSprite->Reg1);
RegionNull(&pSprite->Reg2);
}
#endif
#endif /* XINERAMA */
}
void FreeSprite(DeviceIntPtr dev)
@ -3410,7 +3410,7 @@ UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen)
(*pScreen->ConstrainCursor) (pDev, pScreen, &pSprite->physLimits);
(*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current);
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
pSprite->hotLimits.x1 = -screenInfo.screens[0]->x;
pSprite->hotLimits.y1 = -screenInfo.screens[0]->y;
@ -3419,7 +3419,7 @@ UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen)
pSprite->physLimits = pSprite->hotLimits;
pSprite->screen = pScreen;
}
#endif
#endif /* XINERAMA */
}
/*
@ -3452,7 +3452,7 @@ NewCurrentScreen(DeviceIntPtr pDev, ScreenPtr newScreen, int x, int y)
pSprite->hotPhys.x = x;
pSprite->hotPhys.y = y;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
pSprite->hotPhys.x += newScreen->x - screenInfo.screens[0]->x;
pSprite->hotPhys.y += newScreen->y - screenInfo.screens[0]->y;
@ -3479,12 +3479,12 @@ NewCurrentScreen(DeviceIntPtr pDev, ScreenPtr newScreen, int x, int y)
}
}
else
#endif
#endif /* XINERAMA */
if (newScreen != pSprite->hotPhys.pScreen)
ConfineCursorToWindow(ptr, newScreen->root, TRUE, FALSE);
}
#ifdef PANORAMIX
#ifdef XINERAMA
static Bool
XineramaPointInWindowIsVisible(WindowPtr pWin, int x, int y)
@ -3591,7 +3591,7 @@ XineramaWarpPointer(ClientPtr client)
return Success;
}
#endif
#endif /* XINERAMA */
/**
* Server-side protocol handling for WarpPointer request.
@ -3623,10 +3623,10 @@ ProcWarpPointer(ClientPtr client)
dev = dev->lastSlave;
pSprite = dev->spriteInfo->sprite;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
return XineramaWarpPointer(client);
#endif
#endif /* XINERAMA */
if (stuff->dstWid != None) {
rc = dixLookupWindow(&dest, stuff->dstWid, client, DixGetAttrAccess);
@ -3705,7 +3705,7 @@ BorderSizeNotEmpty(DeviceIntPtr pDev, WindowPtr pWin)
if (RegionNotEmpty(&pWin->borderSize))
return TRUE;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && XineramaSetWindowPntrs(pDev, pWin)) {
int i;
@ -3715,7 +3715,7 @@ BorderSizeNotEmpty(DeviceIntPtr pDev, WindowPtr pWin)
return TRUE;
}
}
#endif
#endif /* XINERAMA */
return FALSE;
}
@ -5350,7 +5350,7 @@ ProcQueryPointer(ClientPtr client)
rep.winY = 0;
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
rep.rootX += screenInfo.screens[0]->x;
rep.rootY += screenInfo.screens[0]->y;
@ -5359,7 +5359,7 @@ ProcQueryPointer(ClientPtr client)
rep.winY += screenInfo.screens[0]->y;
}
}
#endif
#endif /* XINERAMA */
if (rc == BadAccess) {
rep.mask = 0;
@ -5908,10 +5908,10 @@ CheckCursorConfinement(WindowPtr pWin)
WindowPtr confineTo;
DeviceIntPtr pDev;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
return;
#endif
#endif /* XINERMA */
for (pDev = inputInfo.devices; pDev; pDev = pDev->next) {
if (DevHasCursor(pDev)) {
@ -5972,11 +5972,11 @@ ProcRecolorCursor(ClientPtr client)
for (nscr = 0; nscr < screenInfo.numScreens; nscr++) {
pscr = screenInfo.screens[nscr];
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
displayed = (pscr == pSprite->screen);
else
#endif
#endif /* XINERAMA */
displayed = (pscr == pSprite->hotPhys.pScreen);
(*pscr->RecolorCursor) (PickPointer(client), pscr, pCursor,
(pCursor == pSprite->current) && displayed);
@ -6001,9 +6001,9 @@ ProcRecolorCursor(ClientPtr client)
void
WriteEventsToClient(ClientPtr pClient, int count, xEvent *events)
{
#ifdef PANORAMIX
#ifdef XINERAMA
xEvent eventCopy;
#endif
#endif /* XINERAMA */
xEvent *eventTo, *eventFrom;
int i, eventlength = sizeof(xEvent);
@ -6017,7 +6017,7 @@ WriteEventsToClient(ClientPtr pClient, int count, xEvent *events)
/* Let XKB rewrite the state, as it depends on client preferences. */
XkbFilterEvents(pClient, count, events);
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension &&
(screenInfo.screens[0]->x || screenInfo.screens[0]->y)) {
switch (events->u.u.type) {
@ -6048,7 +6048,7 @@ WriteEventsToClient(ClientPtr pClient, int count, xEvent *events)
break;
}
}
#endif
#endif /* XINERAMA */
if (EventCallback) {
EventInfoRec eventinfo;

View File

@ -59,10 +59,10 @@
#include "xkbsrv.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#include "exglobals.h"
#include "exevents.h"
@ -2139,7 +2139,7 @@ PostSyntheticMotion(DeviceIntPtr pDev,
{
DeviceEvent ev;
#ifdef PANORAMIX
#ifdef XINERAMA
/* Translate back to the sprite screen since processInputProc
will translate from sprite screen to screen 0 upon reentry
to the DIX layer. */
@ -2147,7 +2147,7 @@ PostSyntheticMotion(DeviceIntPtr pDev,
x += screenInfo.screens[0]->x - screenInfo.screens[screen]->x;
y += screenInfo.screens[0]->y - screenInfo.screens[screen]->y;
}
#endif
#endif /* XINERAMA */
memset(&ev, 0, sizeof(DeviceEvent));
init_device_event(&ev, pDev, time, EVENT_SOURCE_NORMAL);

View File

@ -115,11 +115,11 @@ Equipment Corporation.
#include "extnsionst.h"
#include "privates.h"
#include "exevents.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiXsrv.h"
#else
#include "dixevents.h" /* InitEvents() */
#endif
#endif /* XINERAMA */
#ifdef DPMSExtension
#include <X11/extensions/dpmsconst.h>
@ -240,13 +240,13 @@ dix_main(int argc, char *argv[], char *envp[])
FatalError("could not open default cursor font");
}
#ifdef PANORAMIX
#ifdef XINERAMA
/*
* Consolidate window and colourmap information for each screen
*/
if (!noPanoramiXExtension)
PanoramiXConsolidate();
#endif
#endif /* XINERAMA */
for (i = 0; i < screenInfo.numScreens; i++)
InitRootWindow(screenInfo.screens[i]->root);
@ -260,14 +260,14 @@ dix_main(int argc, char *argv[], char *envp[])
dixCloseRegistry();
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
if (!PanoramiXCreateConnectionBlock()) {
FatalError("could not create connection block info");
}
}
else
#endif
#endif /* XINERAMA */
{
if (!CreateConnectionBlock()) {
FatalError("could not create connection block info");
@ -289,7 +289,7 @@ dix_main(int argc, char *argv[], char *envp[])
FreeScreenSaverTimer();
CloseDownExtensions();
#ifdef PANORAMIX
#ifdef XINERAMA
{
Bool remember_it = noPanoramiXExtension;
@ -299,7 +299,7 @@ dix_main(int argc, char *argv[], char *envp[])
}
#else
FreeAllResources();
#endif
#endif /* XINERAMA */
CloseInput();

View File

@ -59,7 +59,7 @@ SOFTWARE.
#include "swaprep.h"
#include "xace.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "Xext/panoramiX.h"
#include "Xext/panoramiXsrv.h"
#endif
@ -129,7 +129,7 @@ notifyVRRMode(ClientPtr pClient, WindowPtr pWindow, int state, PropertyPtr pProp
WindowVRRMode mode = (WindowVRRMode)(state == PropertyNewValue ? (*((uint32_t*)pProp->data)) : 0);
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
PanoramiXRes *win;
int rc, j;

View File

@ -137,10 +137,10 @@ Equipment Corporation.
#include "colormap.h"
#include "inputstr.h"
#include "cursor.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#include "xace.h"
#include <assert.h>
#include "gcstruct.h"
@ -1178,7 +1178,7 @@ LegalNewID(XID id, ClientPtr client)
void *val;
int rc;
#ifdef PANORAMIX
#ifdef XINERAMA
XID minid, maxid;
if (!noPanoramiXExtension) {
@ -1188,7 +1188,7 @@ LegalNewID(XID id, ClientPtr client)
if ((id >= minid) && (id <= maxid))
return TRUE;
}
#endif /* PANORAMIX */
#endif /* XINERAMA */
if (client->clientAsMask == (id & ~RESOURCE_ID_MASK)) {
rc = dixLookupResourceByClass(&val, id, RC_ANY, serverClient,
DixGetAttrAccess);

View File

@ -123,10 +123,10 @@ Equipment Corporation.
#include "gcstruct.h"
#include "servermd.h"
#include "mivalidate.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
#include "dixevents.h"
#include "globals.h"
#include "mi.h" /* miPaintWindow */
@ -2296,12 +2296,12 @@ ConfigureWindow(WindowPtr pWin, Mask mask, XID *vlist, ClientPtr client)
};
event.u.u.type = ConfigureRequest;
event.u.u.detail = (mask & CWStackMode) ? smode : Above;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && (!pParent || !pParent->parent)) {
event.u.configureRequest.x += screenInfo.screens[0]->x;
event.u.configureRequest.y += screenInfo.screens[0]->y;
}
#endif
#endif /* XINERAMA */
if (MaybeDeliverEventsToClient(pParent, &event, 1,
SubstructureRedirectMask, client) == 1)
return Success;
@ -2379,12 +2379,12 @@ ConfigureWindow(WindowPtr pWin, Mask mask, XID *vlist, ClientPtr client)
.u.configureNotify.override = pWin->overrideRedirect
};
event.u.u.type = ConfigureNotify;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && (!pParent || !pParent->parent)) {
event.u.configureNotify.x += screenInfo.screens[0]->x;
event.u.configureNotify.y += screenInfo.screens[0]->y;
}
#endif
#endif /* XINERAMA */
DeliverEvents(pWin, &event, 1, NullWindow);
}
if (mask & CWBorderWidth) {
@ -2524,12 +2524,12 @@ ReparentWindow(WindowPtr pWin, WindowPtr pParent,
.u.reparent.override = pWin->overrideRedirect
};
event.u.u.type = ReparentNotify;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && !pParent->parent) {
event.u.reparent.x += screenInfo.screens[0]->x;
event.u.reparent.y += screenInfo.screens[0]->y;
}
#endif
#endif /* XINERAMA */
DeliverEvents(pWin, &event, 1, pParent);
/* take out of sibling chain */
@ -2788,7 +2788,7 @@ UnrealizeTree(WindowPtr pWin, Bool fromConfigure)
if (pChild->realized) {
pChild->realized = FALSE;
pChild->visibility = VisibilityNotViewable;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension && !pChild->drawable.pScreen->myNum) {
PanoramiXRes *win;
int rc = dixLookupResourceByType((void **) &win,
@ -2799,7 +2799,7 @@ UnrealizeTree(WindowPtr pWin, Bool fromConfigure)
if (rc == Success)
win->u.win.visibility = VisibilityNotViewable;
}
#endif
#endif /* XINERAMA */
(*Unrealize) (pChild);
DeleteWindowFromAnyEvents(pChild, FALSE);
if (pChild->viewable) {
@ -3016,7 +3016,7 @@ SendVisibilityNotify(WindowPtr pWin)
xEvent event;
unsigned int visibility = pWin->visibility;
#ifdef PANORAMIX
#ifdef XINERAMA
/* This is not quite correct yet, but it's close */
if (!noPanoramiXExtension) {
PanoramiXRes *win;
@ -3077,7 +3077,7 @@ SendVisibilityNotify(WindowPtr pWin)
win->u.win.visibility = visibility;
}
#endif
#endif /* XINERAMA */
event = (xEvent) {
.u.visibility.window = pWin->drawable.id,

View File

@ -87,10 +87,10 @@ dri3_extension_init(void)
if (dri3_screen_generation != serverGeneration)
return;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
return;
#endif
#endif /* XINERAMA */
extension = AddExtension(DRI3_NAME, DRI3NumberEvents, DRI3NumberErrors,
proc_dri3_dispatch, sproc_dri3_dispatch,

View File

@ -935,7 +935,7 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
i, MAX_TIME_IN_MIN);
#endif
#ifdef PANORAMIX
#ifdef XINERAMA
from = X_DEFAULT;
if (!noPanoramiXExtension)
from = X_CMDLINE;
@ -945,7 +945,7 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
}
if (!noPanoramiXExtension)
xf86Msg(from, "Xinerama: enabled\n");
#endif
#endif /* XINERAMA */
#ifdef DRI2
xf86Info.dri2 = FALSE;

View File

@ -178,11 +178,11 @@ DGAInit(ScreenPtr pScreen, DGAFunctionPtr funcs, DGAModePtr modes, int num)
for (i = 0; i < num; i++)
modes[i].num = i + 1;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
for (i = 0; i < num; i++)
modes[i].flags &= ~DGA_PIXMAP_AVAILABLE;
#endif
#endif /* XINERAMA */
return TRUE;
}
@ -227,11 +227,11 @@ DGAReInitModes(ScreenPtr pScreen, DGAModePtr modes, int num)
for (i = 0; i < num; i++)
modes[i].num = i + 1;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
for (i = 0; i < num; i++)
modes[i].flags &= ~DGA_PIXMAP_AVAILABLE;
#endif
#endif /* XINERAMA */
return TRUE;
}

View File

@ -1627,10 +1627,10 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
}
/* Lookup each mode */
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension)
validateAllDefaultModes = TRUE;
#endif
#endif /* XINERAMA */
for (p = scrp->modes;; p = p->next) {
Bool repeat;

View File

@ -409,11 +409,11 @@ xf86RandRInit(ScreenPtr pScreen)
XF86RandRInfoPtr randrp;
ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen);
#ifdef PANORAMIX
#ifdef XINERAMA
/* XXX disable RandR when using Xinerama */
if (!noPanoramiXExtension)
return TRUE;
#endif
#endif /* XINERAMA */
xf86RandRKey = &xf86RandRKeyRec;

View File

@ -383,7 +383,7 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
return FALSE;
}
#ifdef PANORAMIX
#ifdef XINERAMA
/*
* If Xinerama is on, don't allow DRI to initialise. It won't be usable
* anyway.
@ -393,7 +393,7 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
"Direct rendering is not supported when Xinerama is enabled\n");
return FALSE;
}
#endif
#endif /* XINERAMA */
if (drm_server_inited == FALSE) {
drmSetServerInfo(&DRIDRMServerInfo);
drm_server_inited = TRUE;

View File

@ -682,10 +682,10 @@ DRI2ExtensionInit(void)
{
ExtensionEntry *dri2Extension;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
return;
#endif
#endif /* XINERAMA */
dri2Extension = AddExtension(DRI2_NAME,
DRI2NumberEvents,

View File

@ -759,11 +759,11 @@ xf86RandR12CreateScreenResources(ScreenPtr pScreen)
int width, height;
int mmWidth, mmHeight;
#ifdef PANORAMIX
#ifdef XINERAMA
/* XXX disable RandR when using Xinerama */
if (!noPanoramiXExtension)
return TRUE;
#endif
#endif /* XINERAMA */
config = XF86_CRTC_CONFIG_PTR(pScrn);
randrp = XF86RANDRINFO(pScreen);
@ -849,7 +849,7 @@ xf86RandR12Init(ScreenPtr pScreen)
rrScrPrivPtr rp;
XF86RandRInfoPtr randrp;
#ifdef PANORAMIX
#ifdef XINERAMA
/* XXX disable RandR when using Xinerama */
if (!noPanoramiXExtension) {
if (xf86NumScreens == 1)
@ -857,7 +857,7 @@ xf86RandR12Init(ScreenPtr pScreen)
else
return TRUE;
}
#endif
#endif /* XINERAMA */
if (xf86RandR12Generation != serverGeneration)
xf86RandR12Generation = serverGeneration;

View File

@ -59,9 +59,9 @@ extern _X_EXPORT Bool noCompositeExtension;
#endif
/* required by: several video drivers (eg. vmware and sis) */
#ifdef PANORAMIX
#ifdef XINERAMA
extern _X_EXPORT Bool noPanoramiXExtension;
#endif
#endif /* XINERAMA */
#if defined(XV)
extern _X_EXPORT Bool noXvExtension;

View File

@ -29,8 +29,8 @@ extern _X_EXPORT char *SeatId;
extern _X_EXPORT char *ConnectionInfo;
extern _X_EXPORT sig_atomic_t inSignalContext;
#ifdef PANORAMIX
#ifdef XINERAMA
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
#endif
#endif /* XINERAMA */
#endif /* !_XSERV_GLOBAL_H_ */

View File

@ -223,13 +223,13 @@ typedef struct _SpriteRec {
WindowPtr win; /* window of logical position */
HotSpot hot; /* logical pointer position */
HotSpot hotPhys; /* physical pointer position */
#ifdef PANORAMIX
#ifdef XINERAMA
ScreenPtr screen; /* all others are in Screen 0 coordinates */
RegionRec Reg1; /* Region 1 for confining motion */
RegionRec Reg2; /* Region 2 for confining virtual motion */
WindowPtr windows[MAXSCREENS];
WindowPtr confineWin; /* confine window */
#endif
#endif /* XINERAMA */
/* The window trace information is used at dix/events.c to avoid having
* to compute all the windows between the root and the current pointer
* window each time a button or key goes down. The grabs on each of those

View File

@ -212,7 +212,7 @@ if build_glx
conf_data.set_quoted('DRI_DRIVER_PATH', dri_dep.get_variable(pkgconfig : 'dridriverdir'))
endif
conf_data.set('MITSHM', build_mitshm ? '1' : false)
conf_data.set('PANORAMIX', build_xinerama ? '1' : false)
conf_data.set('XINERAMA', build_xinerama ? '1' : false)
conf_data.set('PRESENT', '1')
conf_data.set('RANDR', '1')
conf_data.set('RES', build_res ? '1' : false)

View File

@ -69,7 +69,7 @@
#mesondefine MITSHM
/* Internal define for Xinerama */
#mesondefine PANORAMIX
#mesondefine XINERAMA
/* Support Present extension */
#mesondefine PRESENT

View File

@ -93,10 +93,10 @@ Equipment Corporation.
#include "globals.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
/*
machine-independent graphics exposure code. any device that uses
@ -323,7 +323,7 @@ miSendExposures(WindowPtr pWin, RegionPtr pRgn, int dx, int dy)
pe->u.expose.count = i;
}
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
int scrnum = pWin->drawable.pScreen->myNum;
int x = 0, y = 0;
@ -354,7 +354,7 @@ miSendExposures(WindowPtr pWin, RegionPtr pRgn, int dx, int dy)
pEvent[i].u.expose.y += y;
}
}
#endif
#endif /* XINERAMA */
DeliverEvents(pWin, pEvent, numRects, NullWindow);

View File

@ -105,9 +105,9 @@ static const ExtensionModule staticExtensions[] = {
#ifdef XCSECURITY
{SecurityExtensionInit, "SECURITY", &noSecurityExtension},
#endif
#ifdef PANORAMIX
#ifdef XINERAMA
{PanoramiXExtensionInit, "XINERAMA", &noPanoramiXExtension},
#endif
#endif /* XINERAMA */
/* must be before Render to layer DisplayCursor correctly */
{XFixesExtensionInit, "XFIXES", &noXFixesExtension},
#ifdef XF86BIGFONT

View File

@ -397,9 +397,9 @@ miPointerWarpCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y)
* updated to the second screen, and we never receive any events.
* (FDO bug #18668) */
if (changedScreen
#ifdef PANORAMIX
#ifdef XINERAMA
&& noPanoramiXExtension
#endif
#endif /* XINERAMA */
) {
DeviceIntPtr master = GetMaster(pDev, MASTER_POINTER);
/* Hack for CVE-2023-5380: if we're moving

View File

@ -121,9 +121,9 @@ Bool enableIndirectGLX = FALSE;
Bool AllowByteSwappedClients = FALSE;
#ifdef PANORAMIX
#ifdef XINERAMA
Bool PanoramiXExtensionDisabledHack = FALSE;
#endif
#endif /* XINERAMA */
char *SeatId = NULL;
@ -323,10 +323,10 @@ UseMsg(void)
ErrorF("-v screen-saver without video blanking\n");
ErrorF("-wr create root window with white background\n");
ErrorF("-maxbigreqsize set maximal bigrequest size \n");
#ifdef PANORAMIX
#ifdef XINERAMA
ErrorF("+xinerama Enable XINERAMA extension\n");
ErrorF("-xinerama Disable XINERAMA extension\n");
#endif
#endif /* XINERAMA */
ErrorF("-dumbSched Disable smart scheduling and threaded input, enable old behavior\n");
ErrorF("-schedInterval int Set scheduler interval in msec\n");
ErrorF("-sigstop Enable SIGSTOP based startup\n");
@ -722,7 +722,7 @@ ProcessCommandLine(int argc, char *argv[])
UseMsg();
}
}
#ifdef PANORAMIX
#ifdef XINERAMA
else if (strcmp(argv[i], "+xinerama") == 0) {
noPanoramiXExtension = FALSE;
}
@ -732,7 +732,7 @@ ProcessCommandLine(int argc, char *argv[])
else if (strcmp(argv[i], "-disablexineramaextension") == 0) {
PanoramiXExtensionDisabledHack = TRUE;
}
#endif
#endif /* XINERAMA */
else if (strcmp(argv[i], "-I") == 0) {
/* ignore all remaining arguments */
break;

View File

@ -246,10 +246,10 @@ present_extension_init(void)
ExtensionEntry *extension;
int i;
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
return;
#endif
#endif /* XINERAMA */
extension = AddExtension(PRESENT_NAME, PresentNumberEvents, PresentNumberErrors,
proc_present_dispatch, sproc_present_dispatch,

View File

@ -447,9 +447,9 @@ RRExtensionInit(void)
RRCrtcInitErrorValue();
RROutputInitErrorValue();
RRProviderInitErrorValue();
#ifdef PANORAMIX
#ifdef XINERAMA
RRXineramaExtensionInit();
#endif
#endif /* XINERAMA */
}
void

View File

@ -389,10 +389,10 @@ SProcRRXineramaDispatch(ClientPtr client)
void
RRXineramaExtensionInit(void)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension)
return;
#endif
#endif /* XINERAMA */
if (noRRXineramaExtension)
return;

View File

@ -50,12 +50,12 @@ and Jim Haggerty of Metheus.
#include "inputstr.h"
#include "scrnintstr.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "globals.h"
#include "panoramiX.h"
#include "panoramiXsrv.h"
#include "cursor.h"
#endif
#endif /* XINERAMA */
#include "protocol-versions.h"
@ -714,7 +714,7 @@ RecordSendProtocolEvents(RecordClientsAndProtocolPtr pRCAP,
xEvent swappedEvent;
xEvent *pEvToRecord = pev;
#ifdef PANORAMIX
#ifdef XINERAMA
xEvent shiftedEvent;
if (!noPanoramiXExtension &&
@ -731,7 +731,7 @@ RecordSendProtocolEvents(RecordClientsAndProtocolPtr pRCAP,
screenInfo.screens[scr]->y - screenInfo.screens[0]->y;
pEvToRecord = &shiftedEvent;
}
#endif /* PANORAMIX */
#endif /* XINERAMA */
if (pContext->pRecordingClient->swapped) {
(*EventSwapVector[pEvToRecord->u.u.type & 0177])

View File

@ -42,9 +42,9 @@
#include "picturestr_priv.h"
#include "glyphstr_priv.h"
#include "xace.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
DevPrivateKeyRec PictureScreenPrivateKeyRec;
DevPrivateKeyRec PictureWindowPrivateKeyRec;
@ -1002,7 +1002,7 @@ CreateConicalGradientPicture(Picture pid, xPointFixed * center, xFixed angle,
static int
cpAlphaMap(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
PanoramiXRes *res;
int err = dixLookupResourceByType((void **)&res, id, XRT_PICTURE,
@ -1011,14 +1011,14 @@ cpAlphaMap(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
return err;
id = res->info[screen->myNum].id;
}
#endif
#endif /* XINERAMA */
return dixLookupResourceByType(result, id, PictureType, client, mode);
}
static int
cpClipMask(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
{
#ifdef PANORAMIX
#ifdef XINERAMA
if (!noPanoramiXExtension) {
PanoramiXRes *res;
int err = dixLookupResourceByType((void **)&res, id, XRT_PIXMAP,
@ -1027,7 +1027,7 @@ cpClipMask(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
return err;
id = res->info[screen->myNum].id;
}
#endif
#endif /* XINERAMA */
return dixLookupResourceByType(result, id, X11_RESTYPE_PIXMAP, client, mode);
}

View File

@ -38,9 +38,9 @@ Bool AnimCurInit(ScreenPtr pScreen);
int AnimCursorCreate(CursorPtr *cursors, CARD32 *deltas, int ncursor,
CursorPtr *ppCursor, ClientPtr client, XID cid);
#ifdef PANORAMIX
#ifdef XINERAMA
void PanoramiXRenderInit(void);
void PanoramiXRenderReset(void);
#endif /* PANORAMIX */
#endif /* XINERAMA */
#endif /* _XSERVER_PICTURESTR_PRIV_H_ */

View File

@ -51,10 +51,10 @@
#include "xace.h"
#include "protocol-versions.h"
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
#endif
#endif /* XINERAMA */
Bool noRenderExtension = FALSE;
@ -222,9 +222,9 @@ typedef struct _RenderClient {
#define GetRenderClient(pClient) ((RenderClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RenderClientPrivateKey))
#ifdef PANORAMIX
#ifdef XINERAMA
RESTYPE XRT_PICTURE;
#endif
#endif /* XINERAMA */
void
RenderExtensionInit(void)
@ -245,10 +245,10 @@ RenderExtensionInit(void)
if (!extEntry)
return;
RenderErrBase = extEntry->errorBase;
#ifdef PANORAMIX
#ifdef XINERAMA
if (XRT_PICTURE)
SetResourceTypeErrorValue(XRT_PICTURE, RenderErrBase + BadPicture);
#endif
#endif /* XINERAMA */
SetResourceTypeErrorValue(PictureType, RenderErrBase + BadPicture);
SetResourceTypeErrorValue(PictFormatType, RenderErrBase + BadPictFormat);
SetResourceTypeErrorValue(GlyphSetType, RenderErrBase + BadGlyphSet);
@ -333,14 +333,14 @@ ProcRenderQueryPictFormats(ClientPtr client)
REQUEST_SIZE_MATCH(xRenderQueryPictFormatsReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (noPanoramiXExtension)
numScreens = screenInfo.numScreens;
else
numScreens = ((xConnSetup *) ConnectionInfo)->numRoots;
#else
numScreens = screenInfo.numScreens;
#endif
#endif /* XINERAMA */
ndepth = nformat = nvisual = 0;
for (s = 0; s < numScreens; s++) {
pScreen = screenInfo.screens[s];
@ -2554,7 +2554,7 @@ SProcRenderDispatch(ClientPtr client)
return BadRequest;
}
#ifdef PANORAMIX
#ifdef XINERAMA
#define VERIFY_XIN_PICTURE(pPicture, pid, client, mode) {\
int rc = dixLookupResourceByType((void **)&(pPicture), pid,\
XRT_PICTURE, client, mode);\
@ -3302,4 +3302,4 @@ PanoramiXRenderReset(void)
RenderErrBase = 0;
}
#endif /* PANORAMIX */
#endif /* XINERAMA */

View File

@ -577,7 +577,7 @@ ProcXFixesSetGCClipRegion(ClientPtr client)
REQUEST(xXFixesSetGCClipRegionReq);
REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (XFixesUseXinerama)
return PanoramiXFixesSetGCClipRegion(client, stuff);
#endif
@ -707,7 +707,7 @@ ProcXFixesSetWindowShapeRegion(ClientPtr client)
REQUEST(xXFixesSetWindowShapeRegionReq);
REQUEST_SIZE_MATCH(xXFixesSetWindowShapeRegionReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (XFixesUseXinerama)
return PanoramiXFixesSetWindowShapeRegion(client, stuff);
#endif
@ -738,7 +738,7 @@ ProcXFixesSetPictureClipRegion(ClientPtr client)
REQUEST(xXFixesSetPictureClipRegionReq);
REQUEST_SIZE_MATCH(xXFixesSetPictureClipRegionReq);
#ifdef PANORAMIX
#ifdef XINERAMA
if (XFixesUseXinerama)
return PanoramiXFixesSetPictureClipRegion(client, stuff);
#endif
@ -826,7 +826,7 @@ SProcXFixesExpandRegion(ClientPtr client)
return ProcXFixesExpandRegion(client);
}
#ifdef PANORAMIX
#ifdef XINERAMA
#include "panoramiX.h"
#include "panoramiXsrv.h"
@ -924,4 +924,4 @@ PanoramiXFixesSetPictureClipRegion(ClientPtr client, xXFixesSetPictureClipRegion
return result;
}
#endif
#endif /* XINERAMA */

View File

@ -340,7 +340,7 @@ XFixesExtensionInit(void)
}
}
#ifdef PANORAMIX
#ifdef XINERAMA
int XFixesUseXinerama = 0;
@ -356,4 +356,4 @@ PanoramiXFixesReset(void)
XFixesUseXinerama = 0;
}
#endif
#endif /* XINERAMA */

View File

@ -302,9 +302,9 @@ Bool
XFixesShouldDisconnectClient(ClientPtr client);
/* Xinerama */
#ifdef PANORAMIX
#ifdef XINERAMA
void PanoramiXFixesInit(void);
void PanoramiXFixesReset(void);
#endif
#endif /* XINERAMA */
#endif /* _XFIXESINT_H_ */