(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:
parent
f327de8a4b
commit
59463b7a99
16
Xext/saver.c
16
Xext/saver.c
|
@ -51,10 +51,10 @@ in this Software without prior written authorization from the X Consortium.
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
#ifdef DPMSExtension
|
#ifdef DPMSExtension
|
||||||
#include <X11/extensions/dpmsconst.h>
|
#include <X11/extensions/dpmsconst.h>
|
||||||
#include "dpmsproc.h"
|
#include "dpmsproc.h"
|
||||||
|
@ -584,9 +584,9 @@ ScreenSaverHandle(ScreenPtr pScreen, int xstate, Bool force)
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !pScreen->myNum)
|
if (noPanoramiXExtension || !pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
SendScreenSaverNotify(pScreen, state, force);
|
SendScreenSaverNotify(pScreen, state, force);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1064,7 +1064,7 @@ ProcScreenSaverSetAttributes(ClientPtr client)
|
||||||
REQUEST(xScreenSaverSetAttributesReq);
|
REQUEST(xScreenSaverSetAttributesReq);
|
||||||
REQUEST_AT_LEAST_SIZE(xScreenSaverSetAttributesReq);
|
REQUEST_AT_LEAST_SIZE(xScreenSaverSetAttributesReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
PanoramiXRes *draw;
|
PanoramiXRes *draw;
|
||||||
PanoramiXRes *backPix = NULL;
|
PanoramiXRes *backPix = NULL;
|
||||||
|
@ -1140,7 +1140,7 @@ ProcScreenSaverSetAttributes(ClientPtr client)
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return ScreenSaverSetAttributes(client, stuff);
|
return ScreenSaverSetAttributes(client, stuff);
|
||||||
}
|
}
|
||||||
|
@ -1151,7 +1151,7 @@ ProcScreenSaverUnsetAttributes(ClientPtr client)
|
||||||
REQUEST(xScreenSaverUnsetAttributesReq);
|
REQUEST(xScreenSaverUnsetAttributesReq);
|
||||||
REQUEST_SIZE_MATCH(xScreenSaverUnsetAttributesReq);
|
REQUEST_SIZE_MATCH(xScreenSaverUnsetAttributesReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
PanoramiXRes *draw;
|
PanoramiXRes *draw;
|
||||||
int rc, i;
|
int rc, i;
|
||||||
|
@ -1168,7 +1168,7 @@ ProcScreenSaverUnsetAttributes(ClientPtr client)
|
||||||
|
|
||||||
stuff->drawable = draw->info[0].id;
|
stuff->drawable = draw->info[0].id;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return ScreenSaverUnsetAttributes(client, stuff->drawable);
|
return ScreenSaverUnsetAttributes(client, stuff->drawable);
|
||||||
}
|
}
|
||||||
|
|
12
Xext/shape.c
12
Xext/shape.c
|
@ -65,10 +65,10 @@ static void SShapeNotifyEvent(xShapeNotifyEvent * /* from */ ,
|
||||||
* externally by the Xfixes extension and are now defined in window.h
|
* externally by the Xfixes extension and are now defined in window.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
Bool noShapeExtension = FALSE;
|
Bool noShapeExtension = FALSE;
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ ProcShapeRectangles(ClientPtr client)
|
||||||
REQUEST(xShapeRectanglesReq);
|
REQUEST(xShapeRectanglesReq);
|
||||||
REQUEST_AT_LEAST_SIZE(xShapeRectanglesReq);
|
REQUEST_AT_LEAST_SIZE(xShapeRectanglesReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension)
|
if (noPanoramiXExtension)
|
||||||
return ShapeRectangles(client, stuff);
|
return ShapeRectangles(client, stuff);
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ ProcShapeMask(ClientPtr client)
|
||||||
REQUEST(xShapeMaskReq);
|
REQUEST(xShapeMaskReq);
|
||||||
REQUEST_SIZE_MATCH(xShapeMaskReq);
|
REQUEST_SIZE_MATCH(xShapeMaskReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension)
|
if (noPanoramiXExtension)
|
||||||
return ShapeMask(client, stuff);
|
return ShapeMask(client, stuff);
|
||||||
|
|
||||||
|
@ -519,7 +519,7 @@ ProcShapeCombine(ClientPtr client)
|
||||||
REQUEST(xShapeCombineReq);
|
REQUEST(xShapeCombineReq);
|
||||||
REQUEST_AT_LEAST_SIZE(xShapeCombineReq);
|
REQUEST_AT_LEAST_SIZE(xShapeCombineReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension)
|
if (noPanoramiXExtension)
|
||||||
return ShapeCombine(client, stuff);
|
return ShapeCombine(client, stuff);
|
||||||
|
|
||||||
|
@ -588,7 +588,7 @@ ProcShapeOffset(ClientPtr client)
|
||||||
REQUEST(xShapeOffsetReq);
|
REQUEST(xShapeOffsetReq);
|
||||||
REQUEST_AT_LEAST_SIZE(xShapeOffsetReq);
|
REQUEST_AT_LEAST_SIZE(xShapeOffsetReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
PanoramiXRes *win;
|
PanoramiXRes *win;
|
||||||
int j, result;
|
int j, result;
|
||||||
|
|
||||||
|
|
16
Xext/shm.c
16
Xext/shm.c
|
@ -89,10 +89,10 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#define SHMPERM_MODE(p) p->mode
|
#define SHMPERM_MODE(p) p->mode
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
typedef struct _ShmScrPrivateRec {
|
typedef struct _ShmScrPrivateRec {
|
||||||
CloseScreenProcPtr CloseScreen;
|
CloseScreenProcPtr CloseScreen;
|
||||||
|
@ -742,7 +742,7 @@ ProcShmPutImage(ClientPtr client)
|
||||||
if (!client->local)
|
if (!client->local)
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
int j, result, orig_x, orig_y;
|
int j, result, orig_x, orig_y;
|
||||||
PanoramiXRes *draw, *gc;
|
PanoramiXRes *draw, *gc;
|
||||||
Bool sendEvent, isRoot;
|
Bool sendEvent, isRoot;
|
||||||
|
@ -782,7 +782,7 @@ ProcShmPutImage(ClientPtr client)
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
return ShmPutImage(client, stuff);
|
return ShmPutImage(client, stuff);
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -794,7 +794,7 @@ ProcShmGetImage(ClientPtr client)
|
||||||
if (!client->local)
|
if (!client->local)
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
PanoramiXRes *draw;
|
PanoramiXRes *draw;
|
||||||
DrawablePtr *drawables;
|
DrawablePtr *drawables;
|
||||||
DrawablePtr pDraw;
|
DrawablePtr pDraw;
|
||||||
|
@ -932,7 +932,7 @@ ProcShmGetImage(ClientPtr client)
|
||||||
return Success;
|
return Success;
|
||||||
#else
|
#else
|
||||||
return ShmGetImage(client, stuff);
|
return ShmGetImage(client, stuff);
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -944,7 +944,7 @@ ProcShmCreatePixmap(ClientPtr client)
|
||||||
if (!client->local)
|
if (!client->local)
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension)
|
if (noPanoramiXExtension)
|
||||||
return ShmCreatePixmap(client, stuff);
|
return ShmCreatePixmap(client, stuff);
|
||||||
|
|
||||||
|
@ -1055,7 +1055,7 @@ ProcShmCreatePixmap(ClientPtr client)
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
return ShmCreatePixmap(client, stuff);
|
return ShmCreatePixmap(client, stuff);
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
|
|
||||||
static PixmapPtr
|
static PixmapPtr
|
||||||
|
|
|
@ -79,10 +79,10 @@ static InternalEvent *xtest_evlist;
|
||||||
*/
|
*/
|
||||||
DeviceIntPtr xtestpointer, xtestkeyboard;
|
DeviceIntPtr xtestpointer, xtestkeyboard;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static int XTestSwapFakeInput(ClientPtr /* client */ ,
|
static int XTestSwapFakeInput(ClientPtr /* client */ ,
|
||||||
xReq * /* req */
|
xReq * /* req */
|
||||||
|
|
|
@ -48,12 +48,12 @@ SOFTWARE.
|
||||||
|
|
||||||
#include "xvdisp.h"
|
#include "xvdisp.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
|
||||||
unsigned long XvXRTPort;
|
unsigned long XvXRTPort;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
SWriteQueryExtensionReply(ClientPtr client, xvQueryExtensionReply * rep)
|
SWriteQueryExtensionReply(ClientPtr client, xvQueryExtensionReply * rep)
|
||||||
|
@ -485,7 +485,7 @@ static int XineramaXvPutVideo(ClientPtr client);
|
||||||
static int
|
static int
|
||||||
ProcXvPutVideo(ClientPtr client)
|
ProcXvPutVideo(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (xvUseXinerama)
|
if (xvUseXinerama)
|
||||||
return XineramaXvPutVideo(client);
|
return XineramaXvPutVideo(client);
|
||||||
#endif
|
#endif
|
||||||
|
@ -527,7 +527,7 @@ static int XineramaXvPutStill(ClientPtr client);
|
||||||
static int
|
static int
|
||||||
ProcXvPutStill(ClientPtr client)
|
ProcXvPutStill(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (xvUseXinerama)
|
if (xvUseXinerama)
|
||||||
return XineramaXvPutStill(client);
|
return XineramaXvPutStill(client);
|
||||||
#endif
|
#endif
|
||||||
|
@ -688,7 +688,7 @@ static int XineramaXvStopVideo(ClientPtr client);
|
||||||
static int
|
static int
|
||||||
ProcXvStopVideo(ClientPtr client)
|
ProcXvStopVideo(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (xvUseXinerama)
|
if (xvUseXinerama)
|
||||||
return XineramaXvStopVideo(client);
|
return XineramaXvStopVideo(client);
|
||||||
#endif
|
#endif
|
||||||
|
@ -727,7 +727,7 @@ static int XineramaXvSetPortAttribute(ClientPtr client);
|
||||||
static int
|
static int
|
||||||
ProcXvSetPortAttribute(ClientPtr client)
|
ProcXvSetPortAttribute(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (xvUseXinerama)
|
if (xvUseXinerama)
|
||||||
return XineramaXvSetPortAttribute(client);
|
return XineramaXvSetPortAttribute(client);
|
||||||
#endif
|
#endif
|
||||||
|
@ -905,7 +905,7 @@ XineramaXvPutImage(ClientPtr client);
|
||||||
static int
|
static int
|
||||||
ProcXvPutImage(ClientPtr client)
|
ProcXvPutImage(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (xvUseXinerama)
|
if (xvUseXinerama)
|
||||||
return XineramaXvPutImage(client);
|
return XineramaXvPutImage(client);
|
||||||
#endif
|
#endif
|
||||||
|
@ -997,7 +997,7 @@ static int
|
||||||
ProcXvShmPutImage(ClientPtr client)
|
ProcXvShmPutImage(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef MITSHM
|
#ifdef MITSHM
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (xvUseXinerama)
|
if (xvUseXinerama)
|
||||||
return XineramaXvShmPutImage(client);
|
return XineramaXvShmPutImage(client);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1496,7 +1496,7 @@ SProcXvDispatch(ClientPtr client)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
XineramaXvStopVideo(ClientPtr client)
|
XineramaXvStopVideo(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -1604,7 +1604,7 @@ XineramaXvShmPutImage(ClientPtr client)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define XineramaXvShmPutImage ProcXvShmPutImage
|
#define XineramaXvShmPutImage ProcXvShmPutImage
|
||||||
#endif
|
#endif /* MITSHM */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
XineramaXvPutImage(ClientPtr client)
|
XineramaXvPutImage(ClientPtr client)
|
||||||
|
@ -1853,4 +1853,4 @@ XineramifyXv(void)
|
||||||
|
|
||||||
xvUseXinerama = 1;
|
xvUseXinerama = 1;
|
||||||
}
|
}
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
|
@ -96,10 +96,10 @@ SOFTWARE.
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
#include "xvdisp.h"
|
#include "xvdisp.h"
|
||||||
|
|
||||||
#define SCREEN_PROLOGUE(pScreen, field) ((pScreen)->field = ((XvScreenPtr) \
|
#define SCREEN_PROLOGUE(pScreen, field) ((pScreen)->field = ((XvScreenPtr) \
|
||||||
|
@ -176,9 +176,9 @@ XvExtensionInit(void)
|
||||||
ErrorF("XvExtensionInit: Unable to allocate resource types\n");
|
ErrorF("XvExtensionInit: Unable to allocate resource types\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
XvScreenGeneration = serverGeneration;
|
XvScreenGeneration = serverGeneration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,9 +269,9 @@ XvScreenInit(ScreenPtr pScreen)
|
||||||
ErrorF("XvScreenInit: Unable to allocate resource types\n");
|
ErrorF("XvScreenInit: Unable to allocate resource types\n");
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
XvScreenGeneration = serverGeneration;
|
XvScreenGeneration = serverGeneration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,9 +48,9 @@
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "xkbsrv.h"
|
#include "xkbsrv.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#include "inpututils.h"
|
#include "inpututils.h"
|
||||||
#include "xiquerypointer.h"
|
#include "xiquerypointer.h"
|
||||||
|
@ -183,7 +183,7 @@ ProcXIQueryPointer(ClientPtr client)
|
||||||
rep.win_y = 0;
|
rep.win_y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
rep.root_x += double_to_fp1616(screenInfo.screens[0]->x);
|
rep.root_x += double_to_fp1616(screenInfo.screens[0]->x);
|
||||||
rep.root_y += double_to_fp1616(screenInfo.screens[0]->y);
|
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);
|
rep.win_y += double_to_fp1616(screenInfo.screens[0]->y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
WriteReplyToClient(client, sizeof(xXIQueryPointerReply), &rep);
|
WriteReplyToClient(client, sizeof(xXIQueryPointerReply), &rep);
|
||||||
if (buttons)
|
if (buttons)
|
||||||
|
|
|
@ -572,7 +572,7 @@ CompositeExtensionInit(void)
|
||||||
noCompositeExtension = FALSE;
|
noCompositeExtension = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
|
||||||
int (*PanoramiXSaveCompositeVector[CompositeNumberRequests]) (ClientPtr);
|
int (*PanoramiXSaveCompositeVector[CompositeNumberRequests]) (ClientPtr);
|
||||||
|
@ -925,4 +925,4 @@ PanoramiXCompositeReset(void)
|
||||||
ProcCompositeVector[i] = PanoramiXSaveCompositeVector[i];
|
ProcCompositeVector[i] = PanoramiXSaveCompositeVector[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
|
@ -46,9 +46,9 @@
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Delete the given overlay client list element from its screen list.
|
* Delete the given overlay client list element from its screen list.
|
||||||
|
@ -133,14 +133,14 @@ compCreateOverlayWindow(ScreenPtr pScreen)
|
||||||
int h = pScreen->height;
|
int h = pScreen->height;
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
x = -pScreen->x;
|
x = -pScreen->x;
|
||||||
y = -pScreen->y;
|
y = -pScreen->y;
|
||||||
w = PanoramiXPixWidth;
|
w = PanoramiXPixWidth;
|
||||||
h = PanoramiXPixHeight;
|
h = PanoramiXPixHeight;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
pWin = cs->pOverlayWin =
|
pWin = cs->pOverlayWin =
|
||||||
CreateWindow(cs->overlayWid, pRoot, x, y, w, h, 0,
|
CreateWindow(cs->overlayWid, pRoot, x, y, w, h, 0,
|
||||||
|
|
|
@ -49,9 +49,9 @@
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "compositeext_priv.h"
|
#include "compositeext_priv.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#ifdef COMPOSITE_DEBUG
|
#ifdef COMPOSITE_DEBUG
|
||||||
static int
|
static int
|
||||||
|
@ -201,12 +201,12 @@ updateOverlayWindow(ScreenPtr pScreen)
|
||||||
int w = pScreen->width;
|
int w = pScreen->width;
|
||||||
int h = pScreen->height;
|
int h = pScreen->height;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
w = PanoramiXPixWidth;
|
w = PanoramiXPixWidth;
|
||||||
h = PanoramiXPixHeight;
|
h = PanoramiXPixHeight;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
cs = GetCompScreen(pScreen);
|
cs = GetCompScreen(pScreen);
|
||||||
if ((pWin = cs->pOverlayWin) != NULL) {
|
if ((pWin = cs->pOverlayWin) != NULL) {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
#include "dixstruct_priv.h"
|
#include "dixstruct_priv.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ static int damageUseXinerama = 0;
|
||||||
|
|
||||||
static int PanoramiXDamageCreate(ClientPtr client, xDamageCreateReq *stuff);
|
static int PanoramiXDamageCreate(ClientPtr client, xDamageCreateReq *stuff);
|
||||||
|
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static unsigned char DamageReqCode;
|
static unsigned char DamageReqCode;
|
||||||
static int DamageEventBase;
|
static int DamageEventBase;
|
||||||
|
@ -72,7 +72,7 @@ DamageNoteCritical(ClientPtr pClient)
|
||||||
static void
|
static void
|
||||||
damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
|
damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && draw->type == DRAWABLE_WINDOW) {
|
if (!noPanoramiXExtension && draw->type == DRAWABLE_WINDOW) {
|
||||||
WindowPtr win = (WindowPtr)draw;
|
WindowPtr win = (WindowPtr)draw;
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
*x = draw->x;
|
*x = draw->x;
|
||||||
*y = draw->y;
|
*y = draw->y;
|
||||||
|
@ -303,7 +303,7 @@ ProcDamageCreate(ClientPtr client)
|
||||||
REQUEST(xDamageCreateReq);
|
REQUEST(xDamageCreateReq);
|
||||||
REQUEST_SIZE_MATCH(xDamageCreateReq);
|
REQUEST_SIZE_MATCH(xDamageCreateReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (damageUseXinerama)
|
if (damageUseXinerama)
|
||||||
return PanoramiXDamageCreate(client, stuff);
|
return PanoramiXDamageCreate(client, stuff);
|
||||||
#endif
|
#endif
|
||||||
|
@ -325,7 +325,7 @@ ProcDamageDestroy(ClientPtr client)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static RegionPtr
|
static RegionPtr
|
||||||
DamageExtSubtractWindowClip(DamageExtPtr pDamageExt)
|
DamageExtSubtractWindowClip(DamageExtPtr pDamageExt)
|
||||||
{
|
{
|
||||||
|
@ -373,7 +373,7 @@ DamageExtFreeWindowClip(RegionPtr reg)
|
||||||
if (reg != &PanoramiXScreenRegion)
|
if (reg != &PanoramiXScreenRegion)
|
||||||
RegionDestroy(reg);
|
RegionDestroy(reg);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DamageSubtract intersects with borderClip, so we must reconstruct the
|
* DamageSubtract intersects with borderClip, so we must reconstruct the
|
||||||
|
@ -384,7 +384,7 @@ DamageExtSubtract(DamageExtPtr pDamageExt, const RegionPtr pRegion)
|
||||||
{
|
{
|
||||||
DamagePtr pDamage = pDamageExt->pDamage;
|
DamagePtr pDamage = pDamageExt->pDamage;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
RegionPtr damage = DamageRegion(pDamage);
|
RegionPtr damage = DamageRegion(pDamage);
|
||||||
RegionSubtract(damage, damage, pRegion);
|
RegionSubtract(damage, damage, pRegion);
|
||||||
|
@ -402,7 +402,7 @@ DamageExtSubtract(DamageExtPtr pDamageExt, const RegionPtr pRegion)
|
||||||
|
|
||||||
return RegionNotEmpty(damage);
|
return RegionNotEmpty(damage);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return DamageSubtract(pDamage, pRegion);
|
return DamageSubtract(pDamage, pRegion);
|
||||||
}
|
}
|
||||||
|
@ -592,7 +592,7 @@ SDamageNotifyEvent(xDamageNotifyEvent * from, xDamageNotifyEvent * to)
|
||||||
cpswaps(from->geometry.height, to->geometry.height);
|
cpswaps(from->geometry.height, to->geometry.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PanoramiXDamageReport(DamagePtr pDamage, RegionPtr pRegion, void *closure)
|
PanoramiXDamageReport(DamagePtr pDamage, RegionPtr pRegion, void *closure)
|
||||||
|
@ -707,7 +707,7 @@ PanoramiXDamageReset(void)
|
||||||
damageUseXinerama = 0;
|
damageUseXinerama = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
void
|
void
|
||||||
DamageExtensionInit(void)
|
DamageExtensionInit(void)
|
||||||
|
@ -736,10 +736,10 @@ DamageExtensionInit(void)
|
||||||
(EventSwapPtr) SDamageNotifyEvent;
|
(EventSwapPtr) SDamageNotifyEvent;
|
||||||
SetResourceTypeErrorValue(DamageExtType,
|
SetResourceTypeErrorValue(DamageExtType,
|
||||||
extEntry->errorBase + BadDamage);
|
extEntry->errorBase + BadDamage);
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (XRT_DAMAGE)
|
if (XRT_DAMAGE)
|
||||||
SetResourceTypeErrorValue(XRT_DAMAGE,
|
SetResourceTypeErrorValue(XRT_DAMAGE,
|
||||||
extEntry->errorBase + BadDamage);
|
extEntry->errorBase + BadDamage);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1333,10 +1333,10 @@ DbeExtensionInit(void)
|
||||||
int nStubbedScreens = 0;
|
int nStubbedScreens = 0;
|
||||||
Bool ddxInitSuccess;
|
Bool ddxInitSuccess;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/* Create the resource types. */
|
/* Create the resource types. */
|
||||||
dbeDrawableResType =
|
dbeDrawableResType =
|
||||||
|
|
|
@ -471,9 +471,9 @@ TellNoMap(WindowPtr pwin, Colormap * pmid)
|
||||||
.u.colormap.state = ColormapUninstalled
|
.u.colormap.state = ColormapUninstalled
|
||||||
};
|
};
|
||||||
xE.u.u.type = ColormapNotify;
|
xE.u.u.type = ColormapNotify;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !pwin->drawable.pScreen->myNum)
|
if (noPanoramiXExtension || !pwin->drawable.pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
DeliverEvents(pwin, &xE, 1, (WindowPtr) NULL);
|
DeliverEvents(pwin, &xE, 1, (WindowPtr) NULL);
|
||||||
if (pwin->optional) {
|
if (pwin->optional) {
|
||||||
pwin->optional->colormap = None;
|
pwin->optional->colormap = None;
|
||||||
|
@ -490,10 +490,10 @@ TellLostMap(WindowPtr pwin, void *value)
|
||||||
{
|
{
|
||||||
Colormap *pmid = (Colormap *) value;
|
Colormap *pmid = (Colormap *) value;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && pwin->drawable.pScreen->myNum)
|
if (!noPanoramiXExtension && pwin->drawable.pScreen->myNum)
|
||||||
return WT_STOPWALKING;
|
return WT_STOPWALKING;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
if (wColormap(pwin) == *pmid) {
|
if (wColormap(pwin) == *pmid) {
|
||||||
/* This should be call to DeliverEvent */
|
/* This should be call to DeliverEvent */
|
||||||
xEvent xE = {
|
xEvent xE = {
|
||||||
|
@ -515,10 +515,10 @@ TellGainedMap(WindowPtr pwin, void *value)
|
||||||
{
|
{
|
||||||
Colormap *pmid = (Colormap *) value;
|
Colormap *pmid = (Colormap *) value;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && pwin->drawable.pScreen->myNum)
|
if (!noPanoramiXExtension && pwin->drawable.pScreen->myNum)
|
||||||
return WT_STOPWALKING;
|
return WT_STOPWALKING;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
if (wColormap(pwin) == *pmid) {
|
if (wColormap(pwin) == *pmid) {
|
||||||
/* This should be call to DeliverEvent */
|
/* This should be call to DeliverEvent */
|
||||||
xEvent xE = {
|
xEvent xE = {
|
||||||
|
|
|
@ -2639,9 +2639,9 @@ ProcAllocColor(ClientPtr client)
|
||||||
if ((rc = AllocColor(pmap, &acr.red, &acr.green, &acr.blue,
|
if ((rc = AllocColor(pmap, &acr.red, &acr.green, &acr.blue,
|
||||||
&acr.pixel, client->index)))
|
&acr.pixel, client->index)))
|
||||||
return rc;
|
return rc;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !pmap->pScreen->myNum)
|
if (noPanoramiXExtension || !pmap->pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
WriteReplyToClient(client, sizeof(xAllocColorReply), &acr);
|
WriteReplyToClient(client, sizeof(xAllocColorReply), &acr);
|
||||||
return Success;
|
return Success;
|
||||||
|
|
||||||
|
@ -2680,9 +2680,9 @@ ProcAllocNamedColor(ClientPtr client)
|
||||||
&ancr.screenRed, &ancr.screenGreen,
|
&ancr.screenRed, &ancr.screenGreen,
|
||||||
&ancr.screenBlue, &ancr.pixel, client->index)))
|
&ancr.screenBlue, &ancr.pixel, client->index)))
|
||||||
return rc;
|
return rc;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
|
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
WriteReplyToClient(client, sizeof(xAllocNamedColorReply),
|
WriteReplyToClient(client, sizeof(xAllocNamedColorReply),
|
||||||
&ancr);
|
&ancr);
|
||||||
return Success;
|
return Success;
|
||||||
|
@ -2734,9 +2734,9 @@ ProcAllocColorCells(ClientPtr client)
|
||||||
free(ppixels);
|
free(ppixels);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
|
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
xAllocColorCellsReply accr = {
|
xAllocColorCellsReply accr = {
|
||||||
.type = X_Reply,
|
.type = X_Reply,
|
||||||
|
@ -2803,9 +2803,9 @@ ProcAllocColorPlanes(ClientPtr client)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
acpr.length = bytes_to_int32(length);
|
acpr.length = bytes_to_int32(length);
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
|
if (noPanoramiXExtension || !pcmp->pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
WriteReplyToClient(client, sizeof(xAllocColorPlanesReply), &acpr);
|
WriteReplyToClient(client, sizeof(xAllocColorPlanesReply), &acpr);
|
||||||
client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
|
client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
|
||||||
|
@ -3745,12 +3745,12 @@ SendConnSetup(ClientPtr client, const char *reason)
|
||||||
#endif
|
#endif
|
||||||
/* fill in the "currentInputMask" */
|
/* fill in the "currentInputMask" */
|
||||||
root = (xWindowRoot *) (lConnectionInfo + connBlockScreenStart);
|
root = (xWindowRoot *) (lConnectionInfo + connBlockScreenStart);
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension)
|
if (noPanoramiXExtension)
|
||||||
numScreens = screenInfo.numScreens;
|
numScreens = screenInfo.numScreens;
|
||||||
else
|
else
|
||||||
numScreens = ((xConnSetup *) ConnectionInfo)->numRoots;
|
numScreens = ((xConnSetup *) ConnectionInfo)->numRoots;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
for (i = 0; i < numScreens; i++) {
|
for (i = 0; i < numScreens; i++) {
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
|
|
|
@ -1333,9 +1333,9 @@ doPolyText(ClientPtr client, PTclosurePtr c)
|
||||||
if (c->err != Success)
|
if (c->err != Success)
|
||||||
err = c->err;
|
err = c->err;
|
||||||
if (err != Success && c->client != serverClient) {
|
if (err != Success && c->client != serverClient) {
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !c->pGC->pScreen->myNum)
|
if (noPanoramiXExtension || !c->pGC->pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
SendErrorToClient(c->client, c->reqType, 0, 0, err);
|
SendErrorToClient(c->client, c->reqType, 0, 0, err);
|
||||||
}
|
}
|
||||||
if (ClientIsAsleep(client)) {
|
if (ClientIsAsleep(client)) {
|
||||||
|
|
|
@ -1244,10 +1244,10 @@ CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev,
|
||||||
int i;
|
int i;
|
||||||
int nscreens = screenInfo.numScreens;
|
int nscreens = screenInfo.numScreens;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
nscreens = 1;
|
nscreens = 1;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
for (i = 0; i < nscreens; i++) {
|
for (i = 0; i < nscreens; i++) {
|
||||||
root = screenInfo.screens[i]->root;
|
root = screenInfo.screens[i]->root;
|
||||||
|
@ -1288,10 +1288,10 @@ CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A,
|
||||||
int i;
|
int i;
|
||||||
int nscreens = screenInfo.numScreens;
|
int nscreens = screenInfo.numScreens;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
nscreens = 1;
|
nscreens = 1;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (!HasFocus(A)) {
|
if (!HasFocus(A)) {
|
||||||
WindowPtr child = FirstFocusChild(A);
|
WindowPtr child = FirstFocusChild(A);
|
||||||
|
@ -1335,10 +1335,10 @@ CoreFocusFromPointerRootOrNone(DeviceIntPtr dev,
|
||||||
int i;
|
int i;
|
||||||
int nscreens = screenInfo.numScreens;
|
int nscreens = screenInfo.numScreens;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
nscreens = 1;
|
nscreens = 1;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
for (i = 0; i < nscreens; i++) {
|
for (i = 0; i < nscreens; i++) {
|
||||||
root = screenInfo.screens[i]->root;
|
root = screenInfo.screens[i]->root;
|
||||||
|
@ -1425,10 +1425,10 @@ DeviceFocusEvents(DeviceIntPtr dev, WindowPtr from, WindowPtr to, int mode)
|
||||||
in = (to == NoneWin) ? NotifyDetailNone : NotifyPointerRoot;
|
in = (to == NoneWin) ? NotifyDetailNone : NotifyPointerRoot;
|
||||||
/* wrong values if neither, but then not referenced */
|
/* wrong values if neither, but then not referenced */
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
nscreens = 1;
|
nscreens = 1;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if ((to == NullWindow) || (to == PointerRootWin)) {
|
if ((to == NullWindow) || (to == PointerRootWin)) {
|
||||||
if ((from == NullWindow) || (from == PointerRootWin)) {
|
if ((from == NullWindow) || (from == PointerRootWin)) {
|
||||||
|
|
128
dix/events.c
128
dix/events.c
|
@ -128,10 +128,10 @@ Equipment Corporation.
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "probes.h"
|
#include "probes.h"
|
||||||
|
@ -506,17 +506,17 @@ SyntheticMotion(DeviceIntPtr dev, int x, int y)
|
||||||
{
|
{
|
||||||
int screenno = 0;
|
int screenno = 0;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
screenno = dev->spriteInfo->sprite->screen->myNum;
|
screenno = dev->spriteInfo->sprite->screen->myNum;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
PostSyntheticMotion(dev, x, y, screenno,
|
PostSyntheticMotion(dev, x, y, screenno,
|
||||||
(syncEvents.playingEvents) ? syncEvents.time.
|
(syncEvents.playingEvents) ? syncEvents.time.
|
||||||
milliseconds : currentTime.milliseconds);
|
milliseconds : currentTime.milliseconds);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static void PostNewCursor(DeviceIntPtr pDev);
|
static void PostNewCursor(DeviceIntPtr pDev);
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
|
@ -651,7 +651,7 @@ XineramaConfineCursorToWindow(DeviceIntPtr pDev,
|
||||||
CheckPhysLimits(pDev, pSprite->current, generateEvents, FALSE, NULL);
|
CheckPhysLimits(pDev, pSprite->current, generateEvents, FALSE, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modifies the filter for the given protocol event type to the given masks.
|
* 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)
|
if (!cursor)
|
||||||
return;
|
return;
|
||||||
new = pSprite->hotPhys;
|
new = pSprite->hotPhys;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
/* I don't care what the DDX has to say about it */
|
/* I don't care what the DDX has to say about it */
|
||||||
pSprite->physLimits = pSprite->hotLimits;
|
pSprite->physLimits = pSprite->hotLimits;
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
if (pScreen)
|
if (pScreen)
|
||||||
new.pScreen = pScreen;
|
new.pScreen = pScreen;
|
||||||
|
@ -756,16 +756,16 @@ CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents,
|
||||||
if (pSprite->hotShape)
|
if (pSprite->hotShape)
|
||||||
ConfineToShape(pDev, pSprite->hotShape, &new.x, &new.y);
|
ConfineToShape(pDev, pSprite->hotShape, &new.x, &new.y);
|
||||||
if ((
|
if ((
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
noPanoramiXExtension &&
|
noPanoramiXExtension &&
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
(pScreen != pSprite->hotPhys.pScreen)) ||
|
(pScreen != pSprite->hotPhys.pScreen)) ||
|
||||||
(new.x != pSprite->hotPhys.x) || (new.y != pSprite->hotPhys.y)) {
|
(new.x != pSprite->hotPhys.x) || (new.y != pSprite->hotPhys.y)) {
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
XineramaSetCursorPosition(pDev, new.x, new.y, generateEvents);
|
XineramaSetCursorPosition(pDev, new.x, new.y, generateEvents);
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
if (pScreen != pSprite->hotPhys.pScreen)
|
if (pScreen != pSprite->hotPhys.pScreen)
|
||||||
pSprite->hotPhys = new;
|
pSprite->hotPhys = new;
|
||||||
|
@ -776,11 +776,11 @@ CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents,
|
||||||
SyntheticMotion(pDev, new.x, new.y);
|
SyntheticMotion(pDev, new.x, new.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* Tell DDX what the limits are */
|
/* Tell DDX what the limits are */
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
XineramaConstrainCursor(pDev);
|
XineramaConstrainCursor(pDev);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -814,7 +814,7 @@ CheckVirtualMotion(DeviceIntPtr pDev, QdEventPtr qe, WindowPtr pWin)
|
||||||
if (pWin) {
|
if (pWin) {
|
||||||
BoxRec lims;
|
BoxRec lims;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
int x, y, off_x, off_y, i;
|
int x, y, off_x, off_y, i;
|
||||||
|
|
||||||
|
@ -842,7 +842,7 @@ CheckVirtualMotion(DeviceIntPtr pDev, QdEventPtr qe, WindowPtr pWin)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
if (pSprite->hot.pScreen != pWin->drawable.pScreen) {
|
if (pSprite->hot.pScreen != pWin->drawable.pScreen) {
|
||||||
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)
|
else if (pSprite->hot.y >= lims.y2)
|
||||||
pSprite->hot.y = lims.y2 - 1;
|
pSprite->hot.y = lims.y2 - 1;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
if (RegionNumRects(&pSprite->Reg2) > 1)
|
if (RegionNumRects(&pSprite->Reg2) > 1)
|
||||||
reg = &pSprite->Reg2;
|
reg = &pSprite->Reg2;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
if (wBoundingShape(pWin))
|
if (wBoundingShape(pWin))
|
||||||
reg = &pWin->borderSize;
|
reg = &pWin->borderSize;
|
||||||
|
@ -882,9 +882,9 @@ CheckVirtualMotion(DeviceIntPtr pDev, QdEventPtr qe, WindowPtr pWin)
|
||||||
ev->root_y = pSprite->hot.y;
|
ev->root_y = pSprite->hot.y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension) /* No typo. Only set the root win if disabled */
|
if (noPanoramiXExtension) /* No typo. Only set the root win if disabled */
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
RootWindow(pDev->spriteInfo->sprite) = pSprite->hot.pScreen->root;
|
RootWindow(pDev->spriteInfo->sprite) = pSprite->hot.pScreen->root;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -901,12 +901,12 @@ ConfineCursorToWindow(DeviceIntPtr pDev, WindowPtr pWin, Bool generateEvents,
|
||||||
else {
|
else {
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
XineramaConfineCursorToWindow(pDev, pWin, generateEvents);
|
XineramaConfineCursorToWindow(pDev, pWin, generateEvents);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
pSprite->hotLimits = *RegionExtents(&pWin->borderSize);
|
pSprite->hotLimits = *RegionExtents(&pWin->borderSize);
|
||||||
pSprite->hotShape = wBoundingShape(pWin) ? &pWin->borderSize
|
pSprite->hotShape = wBoundingShape(pWin) ? &pWin->borderSize
|
||||||
: NullRegion;
|
: NullRegion;
|
||||||
|
@ -942,12 +942,12 @@ ChangeToCursor(DeviceIntPtr pDev, CursorPtr cursor)
|
||||||
(pSprite->current->bits->yhot != cursor->bits->yhot))
|
(pSprite->current->bits->yhot != cursor->bits->yhot))
|
||||||
CheckPhysLimits(pDev, cursor, FALSE, pSprite->confined,
|
CheckPhysLimits(pDev, cursor, FALSE, pSprite->confined,
|
||||||
(ScreenPtr) NULL);
|
(ScreenPtr) NULL);
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* XXX: is this really necessary?? (whot) */
|
/* XXX: is this really necessary?? (whot) */
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
pScreen = pSprite->screen;
|
pScreen = pSprite->screen;
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
pScreen = pSprite->hotPhys.pScreen;
|
pScreen = pSprite->hotPhys.pScreen;
|
||||||
|
|
||||||
(*pScreen->DisplayCursor) (pDev, pScreen, cursor);
|
(*pScreen->DisplayCursor) (pDev, pScreen, cursor);
|
||||||
|
@ -1170,12 +1170,12 @@ EnqueueEvent(InternalEvent *ev, DeviceIntPtr device)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event->type == ET_Motion) {
|
if (event->type == ET_Motion) {
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
event->root_x += pSprite->screen->x - screenInfo.screens[0]->x;
|
event->root_x += pSprite->screen->x - screenInfo.screens[0]->x;
|
||||||
event->root_y += pSprite->screen->y - screenInfo.screens[0]->y;
|
event->root_y += pSprite->screen->y - screenInfo.screens[0]->y;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
pSprite->hotPhys.x = event->root_x;
|
pSprite->hotPhys.x = event->root_x;
|
||||||
pSprite->hotPhys.y = event->root_y;
|
pSprite->hotPhys.y = event->root_y;
|
||||||
/* do motion compression, but not if from different devices */
|
/* do motion compression, but not if from different devices */
|
||||||
|
@ -1233,7 +1233,7 @@ PlayReleasedEvents(void)
|
||||||
CheckVirtualMotion(pDev, qe, NullWindow);
|
CheckVirtualMotion(pDev, qe, NullWindow);
|
||||||
syncEvents.time.months = qe->months;
|
syncEvents.time.months = qe->months;
|
||||||
syncEvents.time.milliseconds = qe->event->any.time;
|
syncEvents.time.milliseconds = qe->event->any.time;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* Translate back to the sprite screen since processInputProc
|
/* Translate back to the sprite screen since processInputProc
|
||||||
will translate from sprite screen to screen 0 upon reentry
|
will translate from sprite screen to screen 0 upon reentry
|
||||||
to the DIX layer */
|
to the DIX layer */
|
||||||
|
@ -1261,7 +1261,7 @@ PlayReleasedEvents(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
(*qe->device->public.processInputProc) (qe->event, qe->device);
|
(*qe->device->public.processInputProc) (qe->event, qe->device);
|
||||||
free(qe);
|
free(qe);
|
||||||
for (dev = inputInfo.devices; dev && dev->deviceGrab.sync.frozen;
|
for (dev = inputInfo.devices; dev && dev->deviceGrab.sync.frozen;
|
||||||
|
@ -2484,7 +2484,7 @@ DeliverRawEvent(RawDeviceEvent *ev, DeviceIntPtr device)
|
||||||
Only works for core events.
|
Only works for core events.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
XineramaTryClientEventsResult(ClientPtr client,
|
XineramaTryClientEventsResult(ClientPtr client,
|
||||||
GrabPtr grab, Mask mask, Mask filter)
|
GrabPtr grab, Mask mask, Mask filter)
|
||||||
|
@ -2498,7 +2498,7 @@ XineramaTryClientEventsResult(ClientPtr client,
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to deliver events to the interested parties.
|
* Try to deliver events to the interested parties.
|
||||||
|
@ -2518,11 +2518,11 @@ MaybeDeliverEventsToClient(WindowPtr pWin, xEvent *pEvents,
|
||||||
if (pWin->eventMask & filter) {
|
if (pWin->eventMask & filter) {
|
||||||
if (wClient(pWin) == dontClient)
|
if (wClient(pWin) == dontClient)
|
||||||
return 0;
|
return 0;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
||||||
return XineramaTryClientEventsResult(wClient(pWin), NullGrab,
|
return XineramaTryClientEventsResult(wClient(pWin), NullGrab,
|
||||||
pWin->eventMask, filter);
|
pWin->eventMask, filter);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
if (XaceHookReceiveAccess(wClient(pWin), pWin, pEvents, count))
|
if (XaceHookReceiveAccess(wClient(pWin), pWin, pEvents, count))
|
||||||
return 1; /* don't send, but pretend we did */
|
return 1; /* don't send, but pretend we did */
|
||||||
return TryClientEvents(wClient(pWin), NULL, pEvents, count,
|
return TryClientEvents(wClient(pWin), NULL, pEvents, count,
|
||||||
|
@ -2532,11 +2532,11 @@ MaybeDeliverEventsToClient(WindowPtr pWin, xEvent *pEvents,
|
||||||
if (other->mask & filter) {
|
if (other->mask & filter) {
|
||||||
if (SameClient(other, dontClient))
|
if (SameClient(other, dontClient))
|
||||||
return 0;
|
return 0;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
||||||
return XineramaTryClientEventsResult(rClient(other), NullGrab,
|
return XineramaTryClientEventsResult(rClient(other), NullGrab,
|
||||||
other->mask, filter);
|
other->mask, filter);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
if (XaceHookReceiveAccess(rClient(other), pWin, pEvents,
|
if (XaceHookReceiveAccess(rClient(other), pWin, pEvents,
|
||||||
count))
|
count))
|
||||||
return 1; /* don't send, but pretend we did */
|
return 1; /* don't send, but pretend we did */
|
||||||
|
@ -2909,10 +2909,10 @@ DeliverEvents(WindowPtr pWin, xEvent *xE, int count, WindowPtr otherParent)
|
||||||
DeviceIntRec dummy;
|
DeviceIntRec dummy;
|
||||||
int deliveries;
|
int deliveries;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
||||||
return count;
|
return count;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (!count)
|
if (!count)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -2977,7 +2977,7 @@ PointInBorderSize(WindowPtr pWin, int x, int y)
|
||||||
if (RegionContainsPoint(&pWin->borderSize, x, y, &box))
|
if (RegionContainsPoint(&pWin->borderSize, x, y, &box))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension &&
|
if (!noPanoramiXExtension &&
|
||||||
XineramaSetWindowPntrs(inputInfo.pointer, pWin)) {
|
XineramaSetWindowPntrs(inputInfo.pointer, pWin)) {
|
||||||
SpritePtr pSprite = inputInfo.pointer->spriteInfo->sprite;
|
SpritePtr pSprite = inputInfo.pointer->spriteInfo->sprite;
|
||||||
|
@ -2992,7 +2992,7 @@ PointInBorderSize(WindowPtr pWin, int x, int y)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3132,7 +3132,7 @@ CheckMotion(DeviceEvent *ev, DeviceIntPtr pDev)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
/* Motion events entering DIX get translated to Screen 0
|
/* Motion events entering DIX get translated to Screen 0
|
||||||
coordinates. Replayed events have already been
|
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;
|
ev->root_y += pSprite->screen->y - screenInfo.screens[0]->y;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
if (pSprite->hot.pScreen != pSprite->hotPhys.pScreen) {
|
if (pSprite->hot.pScreen != pSprite->hotPhys.pScreen) {
|
||||||
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) ||
|
if ((pSprite->hotPhys.x != ev->root_x) ||
|
||||||
(pSprite->hotPhys.y != ev->root_y)) {
|
(pSprite->hotPhys.y != ev->root_y)) {
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
XineramaSetCursorPosition(pDev, pSprite->hotPhys.x,
|
XineramaSetCursorPosition(pDev, pSprite->hotPhys.x,
|
||||||
pSprite->hotPhys.y, FALSE);
|
pSprite->hotPhys.y, FALSE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
(*pSprite->hotPhys.pScreen->SetCursorPosition) (pDev,
|
(*pSprite->hotPhys.pScreen->SetCursorPosition) (pDev,
|
||||||
pSprite->
|
pSprite->
|
||||||
|
@ -3330,7 +3330,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
|
||||||
pSprite->hot.y, FALSE);
|
pSprite->hot.y, FALSE);
|
||||||
(*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current);
|
(*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current);
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
pSprite->hotLimits.x1 = -screenInfo.screens[0]->x;
|
pSprite->hotLimits.x1 = -screenInfo.screens[0]->x;
|
||||||
pSprite->hotLimits.y1 = -screenInfo.screens[0]->y;
|
pSprite->hotLimits.y1 = -screenInfo.screens[0]->y;
|
||||||
|
@ -3344,7 +3344,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
|
||||||
RegionNull(&pSprite->Reg1);
|
RegionNull(&pSprite->Reg1);
|
||||||
RegionNull(&pSprite->Reg2);
|
RegionNull(&pSprite->Reg2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
|
|
||||||
void FreeSprite(DeviceIntPtr dev)
|
void FreeSprite(DeviceIntPtr dev)
|
||||||
|
@ -3410,7 +3410,7 @@ UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen)
|
||||||
(*pScreen->ConstrainCursor) (pDev, pScreen, &pSprite->physLimits);
|
(*pScreen->ConstrainCursor) (pDev, pScreen, &pSprite->physLimits);
|
||||||
(*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current);
|
(*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
pSprite->hotLimits.x1 = -screenInfo.screens[0]->x;
|
pSprite->hotLimits.x1 = -screenInfo.screens[0]->x;
|
||||||
pSprite->hotLimits.y1 = -screenInfo.screens[0]->y;
|
pSprite->hotLimits.y1 = -screenInfo.screens[0]->y;
|
||||||
|
@ -3419,7 +3419,7 @@ UpdateSpriteForScreen(DeviceIntPtr pDev, ScreenPtr pScreen)
|
||||||
pSprite->physLimits = pSprite->hotLimits;
|
pSprite->physLimits = pSprite->hotLimits;
|
||||||
pSprite->screen = pScreen;
|
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.x = x;
|
||||||
pSprite->hotPhys.y = y;
|
pSprite->hotPhys.y = y;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
pSprite->hotPhys.x += newScreen->x - screenInfo.screens[0]->x;
|
pSprite->hotPhys.x += newScreen->x - screenInfo.screens[0]->x;
|
||||||
pSprite->hotPhys.y += newScreen->y - screenInfo.screens[0]->y;
|
pSprite->hotPhys.y += newScreen->y - screenInfo.screens[0]->y;
|
||||||
|
@ -3479,12 +3479,12 @@ NewCurrentScreen(DeviceIntPtr pDev, ScreenPtr newScreen, int x, int y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
if (newScreen != pSprite->hotPhys.pScreen)
|
if (newScreen != pSprite->hotPhys.pScreen)
|
||||||
ConfineCursorToWindow(ptr, newScreen->root, TRUE, FALSE);
|
ConfineCursorToWindow(ptr, newScreen->root, TRUE, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
XineramaPointInWindowIsVisible(WindowPtr pWin, int x, int y)
|
XineramaPointInWindowIsVisible(WindowPtr pWin, int x, int y)
|
||||||
|
@ -3591,7 +3591,7 @@ XineramaWarpPointer(ClientPtr client)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Server-side protocol handling for WarpPointer request.
|
* Server-side protocol handling for WarpPointer request.
|
||||||
|
@ -3623,10 +3623,10 @@ ProcWarpPointer(ClientPtr client)
|
||||||
dev = dev->lastSlave;
|
dev = dev->lastSlave;
|
||||||
pSprite = dev->spriteInfo->sprite;
|
pSprite = dev->spriteInfo->sprite;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return XineramaWarpPointer(client);
|
return XineramaWarpPointer(client);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (stuff->dstWid != None) {
|
if (stuff->dstWid != None) {
|
||||||
rc = dixLookupWindow(&dest, stuff->dstWid, client, DixGetAttrAccess);
|
rc = dixLookupWindow(&dest, stuff->dstWid, client, DixGetAttrAccess);
|
||||||
|
@ -3705,7 +3705,7 @@ BorderSizeNotEmpty(DeviceIntPtr pDev, WindowPtr pWin)
|
||||||
if (RegionNotEmpty(&pWin->borderSize))
|
if (RegionNotEmpty(&pWin->borderSize))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && XineramaSetWindowPntrs(pDev, pWin)) {
|
if (!noPanoramiXExtension && XineramaSetWindowPntrs(pDev, pWin)) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -3715,7 +3715,7 @@ BorderSizeNotEmpty(DeviceIntPtr pDev, WindowPtr pWin)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5350,7 +5350,7 @@ ProcQueryPointer(ClientPtr client)
|
||||||
rep.winY = 0;
|
rep.winY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
rep.rootX += screenInfo.screens[0]->x;
|
rep.rootX += screenInfo.screens[0]->x;
|
||||||
rep.rootY += screenInfo.screens[0]->y;
|
rep.rootY += screenInfo.screens[0]->y;
|
||||||
|
@ -5359,7 +5359,7 @@ ProcQueryPointer(ClientPtr client)
|
||||||
rep.winY += screenInfo.screens[0]->y;
|
rep.winY += screenInfo.screens[0]->y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (rc == BadAccess) {
|
if (rc == BadAccess) {
|
||||||
rep.mask = 0;
|
rep.mask = 0;
|
||||||
|
@ -5908,10 +5908,10 @@ CheckCursorConfinement(WindowPtr pWin)
|
||||||
WindowPtr confineTo;
|
WindowPtr confineTo;
|
||||||
DeviceIntPtr pDev;
|
DeviceIntPtr pDev;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
if (!noPanoramiXExtension && pWin->drawable.pScreen->myNum)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif /* XINERMA */
|
||||||
|
|
||||||
for (pDev = inputInfo.devices; pDev; pDev = pDev->next) {
|
for (pDev = inputInfo.devices; pDev; pDev = pDev->next) {
|
||||||
if (DevHasCursor(pDev)) {
|
if (DevHasCursor(pDev)) {
|
||||||
|
@ -5972,11 +5972,11 @@ ProcRecolorCursor(ClientPtr client)
|
||||||
|
|
||||||
for (nscr = 0; nscr < screenInfo.numScreens; nscr++) {
|
for (nscr = 0; nscr < screenInfo.numScreens; nscr++) {
|
||||||
pscr = screenInfo.screens[nscr];
|
pscr = screenInfo.screens[nscr];
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
displayed = (pscr == pSprite->screen);
|
displayed = (pscr == pSprite->screen);
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
displayed = (pscr == pSprite->hotPhys.pScreen);
|
displayed = (pscr == pSprite->hotPhys.pScreen);
|
||||||
(*pscr->RecolorCursor) (PickPointer(client), pscr, pCursor,
|
(*pscr->RecolorCursor) (PickPointer(client), pscr, pCursor,
|
||||||
(pCursor == pSprite->current) && displayed);
|
(pCursor == pSprite->current) && displayed);
|
||||||
|
@ -6001,9 +6001,9 @@ ProcRecolorCursor(ClientPtr client)
|
||||||
void
|
void
|
||||||
WriteEventsToClient(ClientPtr pClient, int count, xEvent *events)
|
WriteEventsToClient(ClientPtr pClient, int count, xEvent *events)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
xEvent eventCopy;
|
xEvent eventCopy;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
xEvent *eventTo, *eventFrom;
|
xEvent *eventTo, *eventFrom;
|
||||||
int i, eventlength = sizeof(xEvent);
|
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. */
|
/* Let XKB rewrite the state, as it depends on client preferences. */
|
||||||
XkbFilterEvents(pClient, count, events);
|
XkbFilterEvents(pClient, count, events);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension &&
|
if (!noPanoramiXExtension &&
|
||||||
(screenInfo.screens[0]->x || screenInfo.screens[0]->y)) {
|
(screenInfo.screens[0]->x || screenInfo.screens[0]->y)) {
|
||||||
switch (events->u.u.type) {
|
switch (events->u.u.type) {
|
||||||
|
@ -6048,7 +6048,7 @@ WriteEventsToClient(ClientPtr pClient, int count, xEvent *events)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (EventCallback) {
|
if (EventCallback) {
|
||||||
EventInfoRec eventinfo;
|
EventInfoRec eventinfo;
|
||||||
|
|
|
@ -59,10 +59,10 @@
|
||||||
|
|
||||||
#include "xkbsrv.h"
|
#include "xkbsrv.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
#include "exevents.h"
|
#include "exevents.h"
|
||||||
|
@ -2139,7 +2139,7 @@ PostSyntheticMotion(DeviceIntPtr pDev,
|
||||||
{
|
{
|
||||||
DeviceEvent ev;
|
DeviceEvent ev;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* Translate back to the sprite screen since processInputProc
|
/* Translate back to the sprite screen since processInputProc
|
||||||
will translate from sprite screen to screen 0 upon reentry
|
will translate from sprite screen to screen 0 upon reentry
|
||||||
to the DIX layer. */
|
to the DIX layer. */
|
||||||
|
@ -2147,7 +2147,7 @@ PostSyntheticMotion(DeviceIntPtr pDev,
|
||||||
x += screenInfo.screens[0]->x - screenInfo.screens[screen]->x;
|
x += screenInfo.screens[0]->x - screenInfo.screens[screen]->x;
|
||||||
y += screenInfo.screens[0]->y - screenInfo.screens[screen]->y;
|
y += screenInfo.screens[0]->y - screenInfo.screens[screen]->y;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
memset(&ev, 0, sizeof(DeviceEvent));
|
memset(&ev, 0, sizeof(DeviceEvent));
|
||||||
init_device_event(&ev, pDev, time, EVENT_SOURCE_NORMAL);
|
init_device_event(&ev, pDev, time, EVENT_SOURCE_NORMAL);
|
||||||
|
|
16
dix/main.c
16
dix/main.c
|
@ -115,11 +115,11 @@ Equipment Corporation.
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "privates.h"
|
#include "privates.h"
|
||||||
#include "exevents.h"
|
#include "exevents.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#else
|
#else
|
||||||
#include "dixevents.h" /* InitEvents() */
|
#include "dixevents.h" /* InitEvents() */
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#ifdef DPMSExtension
|
#ifdef DPMSExtension
|
||||||
#include <X11/extensions/dpmsconst.h>
|
#include <X11/extensions/dpmsconst.h>
|
||||||
|
@ -240,13 +240,13 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
FatalError("could not open default cursor font");
|
FatalError("could not open default cursor font");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/*
|
/*
|
||||||
* Consolidate window and colourmap information for each screen
|
* Consolidate window and colourmap information for each screen
|
||||||
*/
|
*/
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
PanoramiXConsolidate();
|
PanoramiXConsolidate();
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
for (i = 0; i < screenInfo.numScreens; i++)
|
for (i = 0; i < screenInfo.numScreens; i++)
|
||||||
InitRootWindow(screenInfo.screens[i]->root);
|
InitRootWindow(screenInfo.screens[i]->root);
|
||||||
|
@ -260,14 +260,14 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
|
|
||||||
dixCloseRegistry();
|
dixCloseRegistry();
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
if (!PanoramiXCreateConnectionBlock()) {
|
if (!PanoramiXCreateConnectionBlock()) {
|
||||||
FatalError("could not create connection block info");
|
FatalError("could not create connection block info");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
{
|
{
|
||||||
if (!CreateConnectionBlock()) {
|
if (!CreateConnectionBlock()) {
|
||||||
FatalError("could not create connection block info");
|
FatalError("could not create connection block info");
|
||||||
|
@ -289,7 +289,7 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
FreeScreenSaverTimer();
|
FreeScreenSaverTimer();
|
||||||
CloseDownExtensions();
|
CloseDownExtensions();
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
{
|
{
|
||||||
Bool remember_it = noPanoramiXExtension;
|
Bool remember_it = noPanoramiXExtension;
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
FreeAllResources();
|
FreeAllResources();
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
CloseInput();
|
CloseInput();
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ SOFTWARE.
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "Xext/panoramiX.h"
|
#include "Xext/panoramiX.h"
|
||||||
#include "Xext/panoramiXsrv.h"
|
#include "Xext/panoramiXsrv.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -129,7 +129,7 @@ notifyVRRMode(ClientPtr pClient, WindowPtr pWindow, int state, PropertyPtr pProp
|
||||||
|
|
||||||
WindowVRRMode mode = (WindowVRRMode)(state == PropertyNewValue ? (*((uint32_t*)pProp->data)) : 0);
|
WindowVRRMode mode = (WindowVRRMode)(state == PropertyNewValue ? (*((uint32_t*)pProp->data)) : 0);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
PanoramiXRes *win;
|
PanoramiXRes *win;
|
||||||
int rc, j;
|
int rc, j;
|
||||||
|
|
|
@ -137,10 +137,10 @@ Equipment Corporation.
|
||||||
#include "colormap.h"
|
#include "colormap.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "cursor.h"
|
#include "cursor.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
|
@ -1178,7 +1178,7 @@ LegalNewID(XID id, ClientPtr client)
|
||||||
void *val;
|
void *val;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
XID minid, maxid;
|
XID minid, maxid;
|
||||||
|
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
|
@ -1188,7 +1188,7 @@ LegalNewID(XID id, ClientPtr client)
|
||||||
if ((id >= minid) && (id <= maxid))
|
if ((id >= minid) && (id <= maxid))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
if (client->clientAsMask == (id & ~RESOURCE_ID_MASK)) {
|
if (client->clientAsMask == (id & ~RESOURCE_ID_MASK)) {
|
||||||
rc = dixLookupResourceByClass(&val, id, RC_ANY, serverClient,
|
rc = dixLookupResourceByClass(&val, id, RC_ANY, serverClient,
|
||||||
DixGetAttrAccess);
|
DixGetAttrAccess);
|
||||||
|
|
24
dix/window.c
24
dix/window.c
|
@ -123,10 +123,10 @@ Equipment Corporation.
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "mivalidate.h"
|
#include "mivalidate.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
#include "dixevents.h"
|
#include "dixevents.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "mi.h" /* miPaintWindow */
|
#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.type = ConfigureRequest;
|
||||||
event.u.u.detail = (mask & CWStackMode) ? smode : Above;
|
event.u.u.detail = (mask & CWStackMode) ? smode : Above;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && (!pParent || !pParent->parent)) {
|
if (!noPanoramiXExtension && (!pParent || !pParent->parent)) {
|
||||||
event.u.configureRequest.x += screenInfo.screens[0]->x;
|
event.u.configureRequest.x += screenInfo.screens[0]->x;
|
||||||
event.u.configureRequest.y += screenInfo.screens[0]->y;
|
event.u.configureRequest.y += screenInfo.screens[0]->y;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
if (MaybeDeliverEventsToClient(pParent, &event, 1,
|
if (MaybeDeliverEventsToClient(pParent, &event, 1,
|
||||||
SubstructureRedirectMask, client) == 1)
|
SubstructureRedirectMask, client) == 1)
|
||||||
return Success;
|
return Success;
|
||||||
|
@ -2379,12 +2379,12 @@ ConfigureWindow(WindowPtr pWin, Mask mask, XID *vlist, ClientPtr client)
|
||||||
.u.configureNotify.override = pWin->overrideRedirect
|
.u.configureNotify.override = pWin->overrideRedirect
|
||||||
};
|
};
|
||||||
event.u.u.type = ConfigureNotify;
|
event.u.u.type = ConfigureNotify;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && (!pParent || !pParent->parent)) {
|
if (!noPanoramiXExtension && (!pParent || !pParent->parent)) {
|
||||||
event.u.configureNotify.x += screenInfo.screens[0]->x;
|
event.u.configureNotify.x += screenInfo.screens[0]->x;
|
||||||
event.u.configureNotify.y += screenInfo.screens[0]->y;
|
event.u.configureNotify.y += screenInfo.screens[0]->y;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
DeliverEvents(pWin, &event, 1, NullWindow);
|
DeliverEvents(pWin, &event, 1, NullWindow);
|
||||||
}
|
}
|
||||||
if (mask & CWBorderWidth) {
|
if (mask & CWBorderWidth) {
|
||||||
|
@ -2524,12 +2524,12 @@ ReparentWindow(WindowPtr pWin, WindowPtr pParent,
|
||||||
.u.reparent.override = pWin->overrideRedirect
|
.u.reparent.override = pWin->overrideRedirect
|
||||||
};
|
};
|
||||||
event.u.u.type = ReparentNotify;
|
event.u.u.type = ReparentNotify;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && !pParent->parent) {
|
if (!noPanoramiXExtension && !pParent->parent) {
|
||||||
event.u.reparent.x += screenInfo.screens[0]->x;
|
event.u.reparent.x += screenInfo.screens[0]->x;
|
||||||
event.u.reparent.y += screenInfo.screens[0]->y;
|
event.u.reparent.y += screenInfo.screens[0]->y;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
DeliverEvents(pWin, &event, 1, pParent);
|
DeliverEvents(pWin, &event, 1, pParent);
|
||||||
|
|
||||||
/* take out of sibling chain */
|
/* take out of sibling chain */
|
||||||
|
@ -2788,7 +2788,7 @@ UnrealizeTree(WindowPtr pWin, Bool fromConfigure)
|
||||||
if (pChild->realized) {
|
if (pChild->realized) {
|
||||||
pChild->realized = FALSE;
|
pChild->realized = FALSE;
|
||||||
pChild->visibility = VisibilityNotViewable;
|
pChild->visibility = VisibilityNotViewable;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && !pChild->drawable.pScreen->myNum) {
|
if (!noPanoramiXExtension && !pChild->drawable.pScreen->myNum) {
|
||||||
PanoramiXRes *win;
|
PanoramiXRes *win;
|
||||||
int rc = dixLookupResourceByType((void **) &win,
|
int rc = dixLookupResourceByType((void **) &win,
|
||||||
|
@ -2799,7 +2799,7 @@ UnrealizeTree(WindowPtr pWin, Bool fromConfigure)
|
||||||
if (rc == Success)
|
if (rc == Success)
|
||||||
win->u.win.visibility = VisibilityNotViewable;
|
win->u.win.visibility = VisibilityNotViewable;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
(*Unrealize) (pChild);
|
(*Unrealize) (pChild);
|
||||||
DeleteWindowFromAnyEvents(pChild, FALSE);
|
DeleteWindowFromAnyEvents(pChild, FALSE);
|
||||||
if (pChild->viewable) {
|
if (pChild->viewable) {
|
||||||
|
@ -3016,7 +3016,7 @@ SendVisibilityNotify(WindowPtr pWin)
|
||||||
xEvent event;
|
xEvent event;
|
||||||
unsigned int visibility = pWin->visibility;
|
unsigned int visibility = pWin->visibility;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* This is not quite correct yet, but it's close */
|
/* This is not quite correct yet, but it's close */
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
PanoramiXRes *win;
|
PanoramiXRes *win;
|
||||||
|
@ -3077,7 +3077,7 @@ SendVisibilityNotify(WindowPtr pWin)
|
||||||
|
|
||||||
win->u.win.visibility = visibility;
|
win->u.win.visibility = visibility;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
event = (xEvent) {
|
event = (xEvent) {
|
||||||
.u.visibility.window = pWin->drawable.id,
|
.u.visibility.window = pWin->drawable.id,
|
||||||
|
|
|
@ -87,10 +87,10 @@ dri3_extension_init(void)
|
||||||
if (dri3_screen_generation != serverGeneration)
|
if (dri3_screen_generation != serverGeneration)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
extension = AddExtension(DRI3_NAME, DRI3NumberEvents, DRI3NumberErrors,
|
extension = AddExtension(DRI3_NAME, DRI3NumberEvents, DRI3NumberErrors,
|
||||||
proc_dri3_dispatch, sproc_dri3_dispatch,
|
proc_dri3_dispatch, sproc_dri3_dispatch,
|
||||||
|
|
|
@ -935,7 +935,7 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||||
i, MAX_TIME_IN_MIN);
|
i, MAX_TIME_IN_MIN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
from = X_DEFAULT;
|
from = X_DEFAULT;
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
from = X_CMDLINE;
|
from = X_CMDLINE;
|
||||||
|
@ -945,7 +945,7 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||||
}
|
}
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
xf86Msg(from, "Xinerama: enabled\n");
|
xf86Msg(from, "Xinerama: enabled\n");
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#ifdef DRI2
|
#ifdef DRI2
|
||||||
xf86Info.dri2 = FALSE;
|
xf86Info.dri2 = FALSE;
|
||||||
|
|
|
@ -178,11 +178,11 @@ DGAInit(ScreenPtr pScreen, DGAFunctionPtr funcs, DGAModePtr modes, int num)
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
modes[i].num = i + 1;
|
modes[i].num = i + 1;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
modes[i].flags &= ~DGA_PIXMAP_AVAILABLE;
|
modes[i].flags &= ~DGA_PIXMAP_AVAILABLE;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -227,11 +227,11 @@ DGAReInitModes(ScreenPtr pScreen, DGAModePtr modes, int num)
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
modes[i].num = i + 1;
|
modes[i].num = i + 1;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
modes[i].flags &= ~DGA_PIXMAP_AVAILABLE;
|
modes[i].flags &= ~DGA_PIXMAP_AVAILABLE;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1627,10 +1627,10 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Lookup each mode */
|
/* Lookup each mode */
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension)
|
if (noPanoramiXExtension)
|
||||||
validateAllDefaultModes = TRUE;
|
validateAllDefaultModes = TRUE;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
for (p = scrp->modes;; p = p->next) {
|
for (p = scrp->modes;; p = p->next) {
|
||||||
Bool repeat;
|
Bool repeat;
|
||||||
|
|
|
@ -409,11 +409,11 @@ xf86RandRInit(ScreenPtr pScreen)
|
||||||
XF86RandRInfoPtr randrp;
|
XF86RandRInfoPtr randrp;
|
||||||
ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen);
|
ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* XXX disable RandR when using Xinerama */
|
/* XXX disable RandR when using Xinerama */
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
xf86RandRKey = &xf86RandRKeyRec;
|
xf86RandRKey = &xf86RandRKeyRec;
|
||||||
|
|
||||||
|
|
|
@ -383,7 +383,7 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/*
|
/*
|
||||||
* If Xinerama is on, don't allow DRI to initialise. It won't be usable
|
* If Xinerama is on, don't allow DRI to initialise. It won't be usable
|
||||||
* anyway.
|
* anyway.
|
||||||
|
@ -393,7 +393,7 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
|
||||||
"Direct rendering is not supported when Xinerama is enabled\n");
|
"Direct rendering is not supported when Xinerama is enabled\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
if (drm_server_inited == FALSE) {
|
if (drm_server_inited == FALSE) {
|
||||||
drmSetServerInfo(&DRIDRMServerInfo);
|
drmSetServerInfo(&DRIDRMServerInfo);
|
||||||
drm_server_inited = TRUE;
|
drm_server_inited = TRUE;
|
||||||
|
|
|
@ -682,10 +682,10 @@ DRI2ExtensionInit(void)
|
||||||
{
|
{
|
||||||
ExtensionEntry *dri2Extension;
|
ExtensionEntry *dri2Extension;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
dri2Extension = AddExtension(DRI2_NAME,
|
dri2Extension = AddExtension(DRI2_NAME,
|
||||||
DRI2NumberEvents,
|
DRI2NumberEvents,
|
||||||
|
|
|
@ -759,11 +759,11 @@ xf86RandR12CreateScreenResources(ScreenPtr pScreen)
|
||||||
int width, height;
|
int width, height;
|
||||||
int mmWidth, mmHeight;
|
int mmWidth, mmHeight;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* XXX disable RandR when using Xinerama */
|
/* XXX disable RandR when using Xinerama */
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
config = XF86_CRTC_CONFIG_PTR(pScrn);
|
config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||||
randrp = XF86RANDRINFO(pScreen);
|
randrp = XF86RANDRINFO(pScreen);
|
||||||
|
@ -849,7 +849,7 @@ xf86RandR12Init(ScreenPtr pScreen)
|
||||||
rrScrPrivPtr rp;
|
rrScrPrivPtr rp;
|
||||||
XF86RandRInfoPtr randrp;
|
XF86RandRInfoPtr randrp;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
/* XXX disable RandR when using Xinerama */
|
/* XXX disable RandR when using Xinerama */
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
if (xf86NumScreens == 1)
|
if (xf86NumScreens == 1)
|
||||||
|
@ -857,7 +857,7 @@ xf86RandR12Init(ScreenPtr pScreen)
|
||||||
else
|
else
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (xf86RandR12Generation != serverGeneration)
|
if (xf86RandR12Generation != serverGeneration)
|
||||||
xf86RandR12Generation = serverGeneration;
|
xf86RandR12Generation = serverGeneration;
|
||||||
|
|
|
@ -59,9 +59,9 @@ extern _X_EXPORT Bool noCompositeExtension;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* required by: several video drivers (eg. vmware and sis) */
|
/* required by: several video drivers (eg. vmware and sis) */
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
extern _X_EXPORT Bool noPanoramiXExtension;
|
extern _X_EXPORT Bool noPanoramiXExtension;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#if defined(XV)
|
#if defined(XV)
|
||||||
extern _X_EXPORT Bool noXvExtension;
|
extern _X_EXPORT Bool noXvExtension;
|
||||||
|
|
|
@ -29,8 +29,8 @@ extern _X_EXPORT char *SeatId;
|
||||||
extern _X_EXPORT char *ConnectionInfo;
|
extern _X_EXPORT char *ConnectionInfo;
|
||||||
extern _X_EXPORT sig_atomic_t inSignalContext;
|
extern _X_EXPORT sig_atomic_t inSignalContext;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
|
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#endif /* !_XSERV_GLOBAL_H_ */
|
#endif /* !_XSERV_GLOBAL_H_ */
|
||||||
|
|
|
@ -223,13 +223,13 @@ typedef struct _SpriteRec {
|
||||||
WindowPtr win; /* window of logical position */
|
WindowPtr win; /* window of logical position */
|
||||||
HotSpot hot; /* logical pointer position */
|
HotSpot hot; /* logical pointer position */
|
||||||
HotSpot hotPhys; /* physical pointer position */
|
HotSpot hotPhys; /* physical pointer position */
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
ScreenPtr screen; /* all others are in Screen 0 coordinates */
|
ScreenPtr screen; /* all others are in Screen 0 coordinates */
|
||||||
RegionRec Reg1; /* Region 1 for confining motion */
|
RegionRec Reg1; /* Region 1 for confining motion */
|
||||||
RegionRec Reg2; /* Region 2 for confining virtual motion */
|
RegionRec Reg2; /* Region 2 for confining virtual motion */
|
||||||
WindowPtr windows[MAXSCREENS];
|
WindowPtr windows[MAXSCREENS];
|
||||||
WindowPtr confineWin; /* confine window */
|
WindowPtr confineWin; /* confine window */
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
/* The window trace information is used at dix/events.c to avoid having
|
/* 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
|
* 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
|
* window each time a button or key goes down. The grabs on each of those
|
||||||
|
|
|
@ -212,7 +212,7 @@ if build_glx
|
||||||
conf_data.set_quoted('DRI_DRIVER_PATH', dri_dep.get_variable(pkgconfig : 'dridriverdir'))
|
conf_data.set_quoted('DRI_DRIVER_PATH', dri_dep.get_variable(pkgconfig : 'dridriverdir'))
|
||||||
endif
|
endif
|
||||||
conf_data.set('MITSHM', build_mitshm ? '1' : false)
|
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('PRESENT', '1')
|
||||||
conf_data.set('RANDR', '1')
|
conf_data.set('RANDR', '1')
|
||||||
conf_data.set('RES', build_res ? '1' : false)
|
conf_data.set('RES', build_res ? '1' : false)
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
#mesondefine MITSHM
|
#mesondefine MITSHM
|
||||||
|
|
||||||
/* Internal define for Xinerama */
|
/* Internal define for Xinerama */
|
||||||
#mesondefine PANORAMIX
|
#mesondefine XINERAMA
|
||||||
|
|
||||||
/* Support Present extension */
|
/* Support Present extension */
|
||||||
#mesondefine PRESENT
|
#mesondefine PRESENT
|
||||||
|
|
|
@ -93,10 +93,10 @@ Equipment Corporation.
|
||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
machine-independent graphics exposure code. any device that uses
|
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;
|
pe->u.expose.count = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
int scrnum = pWin->drawable.pScreen->myNum;
|
int scrnum = pWin->drawable.pScreen->myNum;
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
|
@ -354,7 +354,7 @@ miSendExposures(WindowPtr pWin, RegionPtr pRgn, int dx, int dy)
|
||||||
pEvent[i].u.expose.y += y;
|
pEvent[i].u.expose.y += y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
DeliverEvents(pWin, pEvent, numRects, NullWindow);
|
DeliverEvents(pWin, pEvent, numRects, NullWindow);
|
||||||
|
|
||||||
|
|
|
@ -105,9 +105,9 @@ static const ExtensionModule staticExtensions[] = {
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
{SecurityExtensionInit, "SECURITY", &noSecurityExtension},
|
{SecurityExtensionInit, "SECURITY", &noSecurityExtension},
|
||||||
#endif
|
#endif
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
{PanoramiXExtensionInit, "XINERAMA", &noPanoramiXExtension},
|
{PanoramiXExtensionInit, "XINERAMA", &noPanoramiXExtension},
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
/* must be before Render to layer DisplayCursor correctly */
|
/* must be before Render to layer DisplayCursor correctly */
|
||||||
{XFixesExtensionInit, "XFIXES", &noXFixesExtension},
|
{XFixesExtensionInit, "XFIXES", &noXFixesExtension},
|
||||||
#ifdef XF86BIGFONT
|
#ifdef XF86BIGFONT
|
||||||
|
|
|
@ -397,9 +397,9 @@ miPointerWarpCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y)
|
||||||
* updated to the second screen, and we never receive any events.
|
* updated to the second screen, and we never receive any events.
|
||||||
* (FDO bug #18668) */
|
* (FDO bug #18668) */
|
||||||
if (changedScreen
|
if (changedScreen
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
&& noPanoramiXExtension
|
&& noPanoramiXExtension
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
) {
|
) {
|
||||||
DeviceIntPtr master = GetMaster(pDev, MASTER_POINTER);
|
DeviceIntPtr master = GetMaster(pDev, MASTER_POINTER);
|
||||||
/* Hack for CVE-2023-5380: if we're moving
|
/* Hack for CVE-2023-5380: if we're moving
|
||||||
|
|
12
os/utils.c
12
os/utils.c
|
@ -121,9 +121,9 @@ Bool enableIndirectGLX = FALSE;
|
||||||
|
|
||||||
Bool AllowByteSwappedClients = FALSE;
|
Bool AllowByteSwappedClients = FALSE;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
Bool PanoramiXExtensionDisabledHack = FALSE;
|
Bool PanoramiXExtensionDisabledHack = FALSE;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
char *SeatId = NULL;
|
char *SeatId = NULL;
|
||||||
|
|
||||||
|
@ -323,10 +323,10 @@ UseMsg(void)
|
||||||
ErrorF("-v screen-saver without video blanking\n");
|
ErrorF("-v screen-saver without video blanking\n");
|
||||||
ErrorF("-wr create root window with white background\n");
|
ErrorF("-wr create root window with white background\n");
|
||||||
ErrorF("-maxbigreqsize set maximal bigrequest size \n");
|
ErrorF("-maxbigreqsize set maximal bigrequest size \n");
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
ErrorF("+xinerama Enable XINERAMA extension\n");
|
ErrorF("+xinerama Enable XINERAMA extension\n");
|
||||||
ErrorF("-xinerama Disable 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("-dumbSched Disable smart scheduling and threaded input, enable old behavior\n");
|
||||||
ErrorF("-schedInterval int Set scheduler interval in msec\n");
|
ErrorF("-schedInterval int Set scheduler interval in msec\n");
|
||||||
ErrorF("-sigstop Enable SIGSTOP based startup\n");
|
ErrorF("-sigstop Enable SIGSTOP based startup\n");
|
||||||
|
@ -722,7 +722,7 @@ ProcessCommandLine(int argc, char *argv[])
|
||||||
UseMsg();
|
UseMsg();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
else if (strcmp(argv[i], "+xinerama") == 0) {
|
else if (strcmp(argv[i], "+xinerama") == 0) {
|
||||||
noPanoramiXExtension = FALSE;
|
noPanoramiXExtension = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -732,7 +732,7 @@ ProcessCommandLine(int argc, char *argv[])
|
||||||
else if (strcmp(argv[i], "-disablexineramaextension") == 0) {
|
else if (strcmp(argv[i], "-disablexineramaextension") == 0) {
|
||||||
PanoramiXExtensionDisabledHack = TRUE;
|
PanoramiXExtensionDisabledHack = TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
else if (strcmp(argv[i], "-I") == 0) {
|
else if (strcmp(argv[i], "-I") == 0) {
|
||||||
/* ignore all remaining arguments */
|
/* ignore all remaining arguments */
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -246,10 +246,10 @@ present_extension_init(void)
|
||||||
ExtensionEntry *extension;
|
ExtensionEntry *extension;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
extension = AddExtension(PRESENT_NAME, PresentNumberEvents, PresentNumberErrors,
|
extension = AddExtension(PRESENT_NAME, PresentNumberEvents, PresentNumberErrors,
|
||||||
proc_present_dispatch, sproc_present_dispatch,
|
proc_present_dispatch, sproc_present_dispatch,
|
||||||
|
|
|
@ -447,9 +447,9 @@ RRExtensionInit(void)
|
||||||
RRCrtcInitErrorValue();
|
RRCrtcInitErrorValue();
|
||||||
RROutputInitErrorValue();
|
RROutputInitErrorValue();
|
||||||
RRProviderInitErrorValue();
|
RRProviderInitErrorValue();
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
RRXineramaExtensionInit();
|
RRXineramaExtensionInit();
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -389,10 +389,10 @@ SProcRRXineramaDispatch(ClientPtr client)
|
||||||
void
|
void
|
||||||
RRXineramaExtensionInit(void)
|
RRXineramaExtensionInit(void)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (noRRXineramaExtension)
|
if (noRRXineramaExtension)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -50,12 +50,12 @@ and Jim Haggerty of Metheus.
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#include "cursor.h"
|
#include "cursor.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
|
@ -714,7 +714,7 @@ RecordSendProtocolEvents(RecordClientsAndProtocolPtr pRCAP,
|
||||||
xEvent swappedEvent;
|
xEvent swappedEvent;
|
||||||
xEvent *pEvToRecord = pev;
|
xEvent *pEvToRecord = pev;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
xEvent shiftedEvent;
|
xEvent shiftedEvent;
|
||||||
|
|
||||||
if (!noPanoramiXExtension &&
|
if (!noPanoramiXExtension &&
|
||||||
|
@ -731,7 +731,7 @@ RecordSendProtocolEvents(RecordClientsAndProtocolPtr pRCAP,
|
||||||
screenInfo.screens[scr]->y - screenInfo.screens[0]->y;
|
screenInfo.screens[scr]->y - screenInfo.screens[0]->y;
|
||||||
pEvToRecord = &shiftedEvent;
|
pEvToRecord = &shiftedEvent;
|
||||||
}
|
}
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
if (pContext->pRecordingClient->swapped) {
|
if (pContext->pRecordingClient->swapped) {
|
||||||
(*EventSwapVector[pEvToRecord->u.u.type & 0177])
|
(*EventSwapVector[pEvToRecord->u.u.type & 0177])
|
||||||
|
|
|
@ -42,9 +42,9 @@
|
||||||
#include "picturestr_priv.h"
|
#include "picturestr_priv.h"
|
||||||
#include "glyphstr_priv.h"
|
#include "glyphstr_priv.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
DevPrivateKeyRec PictureScreenPrivateKeyRec;
|
DevPrivateKeyRec PictureScreenPrivateKeyRec;
|
||||||
DevPrivateKeyRec PictureWindowPrivateKeyRec;
|
DevPrivateKeyRec PictureWindowPrivateKeyRec;
|
||||||
|
@ -1002,7 +1002,7 @@ CreateConicalGradientPicture(Picture pid, xPointFixed * center, xFixed angle,
|
||||||
static int
|
static int
|
||||||
cpAlphaMap(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
|
cpAlphaMap(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
PanoramiXRes *res;
|
PanoramiXRes *res;
|
||||||
int err = dixLookupResourceByType((void **)&res, id, XRT_PICTURE,
|
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;
|
return err;
|
||||||
id = res->info[screen->myNum].id;
|
id = res->info[screen->myNum].id;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return dixLookupResourceByType(result, id, PictureType, client, mode);
|
return dixLookupResourceByType(result, id, PictureType, client, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cpClipMask(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
|
cpClipMask(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
PanoramiXRes *res;
|
PanoramiXRes *res;
|
||||||
int err = dixLookupResourceByType((void **)&res, id, XRT_PIXMAP,
|
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;
|
return err;
|
||||||
id = res->info[screen->myNum].id;
|
id = res->info[screen->myNum].id;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return dixLookupResourceByType(result, id, X11_RESTYPE_PIXMAP, client, mode);
|
return dixLookupResourceByType(result, id, X11_RESTYPE_PIXMAP, client, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,9 @@ Bool AnimCurInit(ScreenPtr pScreen);
|
||||||
int AnimCursorCreate(CursorPtr *cursors, CARD32 *deltas, int ncursor,
|
int AnimCursorCreate(CursorPtr *cursors, CARD32 *deltas, int ncursor,
|
||||||
CursorPtr *ppCursor, ClientPtr client, XID cid);
|
CursorPtr *ppCursor, ClientPtr client, XID cid);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
void PanoramiXRenderInit(void);
|
void PanoramiXRenderInit(void);
|
||||||
void PanoramiXRenderReset(void);
|
void PanoramiXRenderReset(void);
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#endif /* _XSERVER_PICTURESTR_PRIV_H_ */
|
#endif /* _XSERVER_PICTURESTR_PRIV_H_ */
|
||||||
|
|
|
@ -51,10 +51,10 @@
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
Bool noRenderExtension = FALSE;
|
Bool noRenderExtension = FALSE;
|
||||||
|
|
||||||
|
@ -222,9 +222,9 @@ typedef struct _RenderClient {
|
||||||
|
|
||||||
#define GetRenderClient(pClient) ((RenderClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RenderClientPrivateKey))
|
#define GetRenderClient(pClient) ((RenderClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RenderClientPrivateKey))
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
RESTYPE XRT_PICTURE;
|
RESTYPE XRT_PICTURE;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
void
|
void
|
||||||
RenderExtensionInit(void)
|
RenderExtensionInit(void)
|
||||||
|
@ -245,10 +245,10 @@ RenderExtensionInit(void)
|
||||||
if (!extEntry)
|
if (!extEntry)
|
||||||
return;
|
return;
|
||||||
RenderErrBase = extEntry->errorBase;
|
RenderErrBase = extEntry->errorBase;
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (XRT_PICTURE)
|
if (XRT_PICTURE)
|
||||||
SetResourceTypeErrorValue(XRT_PICTURE, RenderErrBase + BadPicture);
|
SetResourceTypeErrorValue(XRT_PICTURE, RenderErrBase + BadPicture);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
SetResourceTypeErrorValue(PictureType, RenderErrBase + BadPicture);
|
SetResourceTypeErrorValue(PictureType, RenderErrBase + BadPicture);
|
||||||
SetResourceTypeErrorValue(PictFormatType, RenderErrBase + BadPictFormat);
|
SetResourceTypeErrorValue(PictFormatType, RenderErrBase + BadPictFormat);
|
||||||
SetResourceTypeErrorValue(GlyphSetType, RenderErrBase + BadGlyphSet);
|
SetResourceTypeErrorValue(GlyphSetType, RenderErrBase + BadGlyphSet);
|
||||||
|
@ -333,14 +333,14 @@ ProcRenderQueryPictFormats(ClientPtr client)
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xRenderQueryPictFormatsReq);
|
REQUEST_SIZE_MATCH(xRenderQueryPictFormatsReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension)
|
if (noPanoramiXExtension)
|
||||||
numScreens = screenInfo.numScreens;
|
numScreens = screenInfo.numScreens;
|
||||||
else
|
else
|
||||||
numScreens = ((xConnSetup *) ConnectionInfo)->numRoots;
|
numScreens = ((xConnSetup *) ConnectionInfo)->numRoots;
|
||||||
#else
|
#else
|
||||||
numScreens = screenInfo.numScreens;
|
numScreens = screenInfo.numScreens;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
ndepth = nformat = nvisual = 0;
|
ndepth = nformat = nvisual = 0;
|
||||||
for (s = 0; s < numScreens; s++) {
|
for (s = 0; s < numScreens; s++) {
|
||||||
pScreen = screenInfo.screens[s];
|
pScreen = screenInfo.screens[s];
|
||||||
|
@ -2554,7 +2554,7 @@ SProcRenderDispatch(ClientPtr client)
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#define VERIFY_XIN_PICTURE(pPicture, pid, client, mode) {\
|
#define VERIFY_XIN_PICTURE(pPicture, pid, client, mode) {\
|
||||||
int rc = dixLookupResourceByType((void **)&(pPicture), pid,\
|
int rc = dixLookupResourceByType((void **)&(pPicture), pid,\
|
||||||
XRT_PICTURE, client, mode);\
|
XRT_PICTURE, client, mode);\
|
||||||
|
@ -3302,4 +3302,4 @@ PanoramiXRenderReset(void)
|
||||||
RenderErrBase = 0;
|
RenderErrBase = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
|
@ -577,7 +577,7 @@ ProcXFixesSetGCClipRegion(ClientPtr client)
|
||||||
REQUEST(xXFixesSetGCClipRegionReq);
|
REQUEST(xXFixesSetGCClipRegionReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq);
|
REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (XFixesUseXinerama)
|
if (XFixesUseXinerama)
|
||||||
return PanoramiXFixesSetGCClipRegion(client, stuff);
|
return PanoramiXFixesSetGCClipRegion(client, stuff);
|
||||||
#endif
|
#endif
|
||||||
|
@ -707,7 +707,7 @@ ProcXFixesSetWindowShapeRegion(ClientPtr client)
|
||||||
REQUEST(xXFixesSetWindowShapeRegionReq);
|
REQUEST(xXFixesSetWindowShapeRegionReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesSetWindowShapeRegionReq);
|
REQUEST_SIZE_MATCH(xXFixesSetWindowShapeRegionReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (XFixesUseXinerama)
|
if (XFixesUseXinerama)
|
||||||
return PanoramiXFixesSetWindowShapeRegion(client, stuff);
|
return PanoramiXFixesSetWindowShapeRegion(client, stuff);
|
||||||
#endif
|
#endif
|
||||||
|
@ -738,7 +738,7 @@ ProcXFixesSetPictureClipRegion(ClientPtr client)
|
||||||
REQUEST(xXFixesSetPictureClipRegionReq);
|
REQUEST(xXFixesSetPictureClipRegionReq);
|
||||||
REQUEST_SIZE_MATCH(xXFixesSetPictureClipRegionReq);
|
REQUEST_SIZE_MATCH(xXFixesSetPictureClipRegionReq);
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (XFixesUseXinerama)
|
if (XFixesUseXinerama)
|
||||||
return PanoramiXFixesSetPictureClipRegion(client, stuff);
|
return PanoramiXFixesSetPictureClipRegion(client, stuff);
|
||||||
#endif
|
#endif
|
||||||
|
@ -826,7 +826,7 @@ SProcXFixesExpandRegion(ClientPtr client)
|
||||||
return ProcXFixesExpandRegion(client);
|
return ProcXFixesExpandRegion(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
|
||||||
|
@ -924,4 +924,4 @@ PanoramiXFixesSetPictureClipRegion(ClientPtr client, xXFixesSetPictureClipRegion
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
|
@ -340,7 +340,7 @@ XFixesExtensionInit(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
|
|
||||||
int XFixesUseXinerama = 0;
|
int XFixesUseXinerama = 0;
|
||||||
|
|
||||||
|
@ -356,4 +356,4 @@ PanoramiXFixesReset(void)
|
||||||
XFixesUseXinerama = 0;
|
XFixesUseXinerama = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
|
@ -302,9 +302,9 @@ Bool
|
||||||
XFixesShouldDisconnectClient(ClientPtr client);
|
XFixesShouldDisconnectClient(ClientPtr client);
|
||||||
|
|
||||||
/* Xinerama */
|
/* Xinerama */
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
void PanoramiXFixesInit(void);
|
void PanoramiXFixesInit(void);
|
||||||
void PanoramiXFixesReset(void);
|
void PanoramiXFixesReset(void);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#endif /* _XFIXESINT_H_ */
|
#endif /* _XFIXESINT_H_ */
|
||||||
|
|
Loading…
Reference in New Issue