Fix build of composite, dix, and randr when Xinerama is disabled.
This commit is contained in:
parent
8f98be7db3
commit
1f48995d66
|
@ -696,11 +696,13 @@ CompositeExtensionInit (void)
|
||||||
if (GetPictureScreenIfSet(pScreen) == NULL)
|
if (GetPictureScreenIfSet(pScreen) == NULL)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#ifdef PANORAMIX
|
||||||
/* Xinerama's rewriting of window drawing before Composite gets to it
|
/* Xinerama's rewriting of window drawing before Composite gets to it
|
||||||
* breaks Composite.
|
* breaks Composite.
|
||||||
*/
|
*/
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow);
|
CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow);
|
||||||
if (!CompositeClientWindowType)
|
if (!CompositeClientWindowType)
|
||||||
|
|
|
@ -695,6 +695,13 @@ XineramaChangeToCursor(CursorPtr cursor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#define SyntheticMotion(x, y) \
|
||||||
|
PostSyntheticMotion(x, y, \
|
||||||
|
0, \
|
||||||
|
syncEvents.playingEvents ? \
|
||||||
|
syncEvents.time.milliseconds : \
|
||||||
|
currentTime.milliseconds);
|
||||||
|
|
||||||
#endif /* PANORAMIX */
|
#endif /* PANORAMIX */
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@ noinst_LTLIBRARIES = librandr.la
|
||||||
|
|
||||||
AM_CFLAGS = $(DIX_CFLAGS)
|
AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
|
XINERAMA_SRCS = rrxinerama.c
|
||||||
|
|
||||||
if XORG
|
if XORG
|
||||||
sdk_HEADERS = randrstr.h
|
sdk_HEADERS = randrstr.h
|
||||||
endif
|
endif
|
||||||
|
@ -18,5 +20,9 @@ librandr_la_SOURCES = \
|
||||||
rrpointer.c \
|
rrpointer.c \
|
||||||
rrproperty.c \
|
rrproperty.c \
|
||||||
rrscreen.c \
|
rrscreen.c \
|
||||||
rrsdispatch.c \
|
rrsdispatch.c
|
||||||
rrxinerama.c
|
|
||||||
|
if XINERAMA
|
||||||
|
librandr_la_SOURCES += ${XINERAMA_SRCS}
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
|
@ -358,8 +358,9 @@ RRExtensionInit (void)
|
||||||
SRRScreenChangeNotifyEvent;
|
SRRScreenChangeNotifyEvent;
|
||||||
EventSwapVector[RREventBase + RRNotify] = (EventSwapPtr)
|
EventSwapVector[RREventBase + RRNotify] = (EventSwapPtr)
|
||||||
SRRNotifyEvent;
|
SRRNotifyEvent;
|
||||||
|
#ifdef PANORAMIX
|
||||||
RRXineramaExtensionInit();
|
RRXineramaExtensionInit();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue