summaryrefslogtreecommitdiff
path: root/xserver/xfixes
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2019-07-27 07:57:27 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2019-07-27 07:57:27 +0000
commitd4a0bed4b91da9de86c311c7fef9a8aa9a6f500c (patch)
treea1b439049dee87bc951e190db93f5bbe8b43b0b5 /xserver/xfixes
parentb6bc775539a31f663f9e22ce3ccaf0aa96adf3b6 (diff)
Update to xserver 1.20.5. Tested by jsg@
Diffstat (limited to 'xserver/xfixes')
-rw-r--r--xserver/xfixes/Makefile.in14
-rw-r--r--xserver/xfixes/cursor.c33
-rw-r--r--xserver/xfixes/region.c34
-rw-r--r--xserver/xfixes/saveset.c2
-rw-r--r--xserver/xfixes/select.c4
-rw-r--r--xserver/xfixes/xfixes.c8
6 files changed, 49 insertions, 46 deletions
diff --git a/xserver/xfixes/Makefile.in b/xserver/xfixes/Makefile.in
index 84aef216d..d74cdb634 100644
--- a/xserver/xfixes/Makefile.in
+++ b/xserver/xfixes/Makefile.in
@@ -68,7 +68,7 @@ CONFIG_HEADER = $(top_builddir)/include/do-not-use-config.h \
$(top_builddir)/include/xorg-config.h \
$(top_builddir)/include/xkb-config.h \
$(top_builddir)/include/xwin-config.h \
- $(top_builddir)/include/kdrive-config.h \
+ $(top_builddir)/include/xwayland-config.h \
$(top_builddir)/include/version-config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
@@ -308,6 +308,7 @@ RANLIB = @RANLIB@
RAWCPP = @RAWCPP@
RAWCPPFLAGS = @RAWCPPFLAGS@
RELEASE_DATE = @RELEASE_DATE@
+SCANNER_ARG = @SCANNER_ARG@
SDK_REQUIRED_MODULES = @SDK_REQUIRED_MODULES@
SED = @SED@
SELINUX_CFLAGS = @SELINUX_CFLAGS@
@@ -326,15 +327,18 @@ SYSCONFDIR = @SYSCONFDIR@
SYSTEMD_DAEMON_CFLAGS = @SYSTEMD_DAEMON_CFLAGS@
SYSTEMD_DAEMON_LIBS = @SYSTEMD_DAEMON_LIBS@
TRADITIONALCPPFLAGS = @TRADITIONALCPPFLAGS@
-TSLIB_CFLAGS = @TSLIB_CFLAGS@
-TSLIB_LIBS = @TSLIB_LIBS@
UDEV_CFLAGS = @UDEV_CFLAGS@
UDEV_LIBS = @UDEV_LIBS@
UTILS_SYS_LIBS = @UTILS_SYS_LIBS@
VENDOR_NAME_SHORT = @VENDOR_NAME_SHORT@
VERSION = @VERSION@
+WAYLAND_EGLSTREAM_CFLAGS = @WAYLAND_EGLSTREAM_CFLAGS@
+WAYLAND_EGLSTREAM_DATADIR = @WAYLAND_EGLSTREAM_DATADIR@
+WAYLAND_EGLSTREAM_LIBS = @WAYLAND_EGLSTREAM_LIBS@
WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@
WAYLAND_SCANNER = @WAYLAND_SCANNER@
+WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@
+WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@
WINDOWSDRI_CFLAGS = @WINDOWSDRI_CFLAGS@
WINDOWSDRI_LIBS = @WINDOWSDRI_LIBS@
WINDOWSWM_CFLAGS = @WINDOWSWM_CFLAGS@
@@ -342,6 +346,8 @@ WINDOWSWM_LIBS = @WINDOWSWM_LIBS@
WINDRES = @WINDRES@
X11EXAMPLES_DEP_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@
X11EXAMPLES_DEP_LIBS = @X11EXAMPLES_DEP_LIBS@
+XCONFIGDIR = @XCONFIGDIR@
+XCONFIGFILE = @XCONFIGFILE@
XDMCP_CFLAGS = @XDMCP_CFLAGS@
XDMCP_LIBS = @XDMCP_LIBS@
XDMXCONFIG_DEP_CFLAGS = @XDMXCONFIG_DEP_CFLAGS@
@@ -413,8 +419,6 @@ XWIN_SERVER_NAME = @XWIN_SERVER_NAME@
XWIN_SYS_LIBS = @XWIN_SYS_LIBS@
YACC = @YACC@
YFLAGS = @YFLAGS@
-__XCONFIGDIR__ = @__XCONFIGDIR__@
-__XCONFIGFILE__ = @__XCONFIGFILE__@
abi_ansic = @abi_ansic@
abi_extension = @abi_extension@
abi_videodrv = @abi_videodrv@
diff --git a/xserver/xfixes/cursor.c b/xserver/xfixes/cursor.c
index a150f450b..d4b68f3af 100644
--- a/xserver/xfixes/cursor.c
+++ b/xserver/xfixes/cursor.c
@@ -134,8 +134,11 @@ Bool EnableCursor = TRUE;
static CursorPtr
CursorForDevice(DeviceIntPtr pDev)
{
- if (pDev && pDev->spriteInfo && pDev->spriteInfo->sprite)
+ if (pDev && pDev->spriteInfo && pDev->spriteInfo->sprite) {
+ if (pDev->spriteInfo->anim.pCursor)
+ return pDev->spriteInfo->anim.pCursor;
return pDev->spriteInfo->sprite->current;
+ }
return NULL;
}
@@ -291,7 +294,7 @@ GetBit(unsigned char *line, int x)
return 0;
}
-int
+int _X_COLD
SProcXFixesSelectCursorInput(ClientPtr client)
{
REQUEST(xXFixesSelectCursorInputReq);
@@ -303,7 +306,7 @@ SProcXFixesSelectCursorInput(ClientPtr client)
return (*ProcXFixesVector[stuff->xfixesReqType]) (client);
}
-void
+void _X_COLD
SXFixesCursorNotifyEvent(xXFixesCursorNotifyEvent * from,
xXFixesCursorNotifyEvent * to)
{
@@ -412,7 +415,7 @@ ProcXFixesGetCursorImage(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesGetCursorImage(ClientPtr client)
{
REQUEST(xXFixesGetCursorImageReq);
@@ -440,7 +443,7 @@ ProcXFixesSetCursorName(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesSetCursorName(ClientPtr client)
{
REQUEST(xXFixesSetCursorNameReq);
@@ -489,7 +492,7 @@ ProcXFixesGetCursorName(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesGetCursorName(ClientPtr client)
{
REQUEST(xXFixesGetCursorNameReq);
@@ -569,7 +572,7 @@ ProcXFixesGetCursorImageAndName(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesGetCursorImageAndName(ClientPtr client)
{
REQUEST(xXFixesGetCursorImageAndNameReq);
@@ -595,8 +598,6 @@ static const RESTYPE CursorRestypes[] = {
RT_WINDOW, RT_PASSIVEGRAB, RT_CURSOR
};
-#define NUM_CURSOR_RESTYPES (sizeof (CursorRestypes) / sizeof (CursorRestypes[0]))
-
static Bool
ReplaceCursorLookup(void *value, XID id, void *closure)
{
@@ -659,7 +660,7 @@ ReplaceCursor(CursorPtr pCursor, TestCursorFunc testCursor, void *closure)
for (clientIndex = 0; clientIndex < currentMaxClients; clientIndex++) {
if (!clients[clientIndex])
continue;
- for (resIndex = 0; resIndex < NUM_CURSOR_RESTYPES; resIndex++) {
+ for (resIndex = 0; resIndex < ARRAY_SIZE(CursorRestypes); resIndex++) {
rcl.type = CursorRestypes[resIndex];
/*
* This function walks the entire client resource database
@@ -696,7 +697,7 @@ ProcXFixesChangeCursor(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesChangeCursor(ClientPtr client)
{
REQUEST(xXFixesChangeCursorReq);
@@ -735,7 +736,7 @@ ProcXFixesChangeCursorByName(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesChangeCursorByName(ClientPtr client)
{
REQUEST(xXFixesChangeCursorByNameReq);
@@ -895,7 +896,7 @@ ProcXFixesHideCursor(ClientPtr client)
return ret;
}
-int
+int _X_COLD
SProcXFixesHideCursor(ClientPtr client)
{
REQUEST(xXFixesHideCursorReq);
@@ -946,7 +947,7 @@ ProcXFixesShowCursor(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesShowCursor(ClientPtr client)
{
REQUEST(xXFixesShowCursorReq);
@@ -1015,7 +1016,7 @@ ProcXFixesCreatePointerBarrier(ClientPtr client)
return XICreatePointerBarrier(client, stuff);
}
-int
+int _X_COLD
SProcXFixesCreatePointerBarrier(ClientPtr client)
{
REQUEST(xXFixesCreatePointerBarrierReq);
@@ -1052,7 +1053,7 @@ ProcXFixesDestroyPointerBarrier(ClientPtr client)
return XIDestroyPointerBarrier(client, stuff);
}
-int
+int _X_COLD
SProcXFixesDestroyPointerBarrier(ClientPtr client)
{
REQUEST(xXFixesDestroyPointerBarrierReq);
diff --git a/xserver/xfixes/region.c b/xserver/xfixes/region.c
index f300d2b6e..7c0a7d2fe 100644
--- a/xserver/xfixes/region.c
+++ b/xserver/xfixes/region.c
@@ -91,7 +91,7 @@ ProcXFixesCreateRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesCreateRegion(ClientPtr client)
{
REQUEST(xXFixesCreateRegionReq);
@@ -135,7 +135,7 @@ ProcXFixesCreateRegionFromBitmap(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesCreateRegionFromBitmap(ClientPtr client)
{
REQUEST(xXFixesCreateRegionFromBitmapReq);
@@ -194,7 +194,7 @@ ProcXFixesCreateRegionFromWindow(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesCreateRegionFromWindow(ClientPtr client)
{
REQUEST(xXFixesCreateRegionFromWindowReq);
@@ -237,7 +237,7 @@ ProcXFixesCreateRegionFromGC(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesCreateRegionFromGC(ClientPtr client)
{
REQUEST(xXFixesCreateRegionFromGCReq);
@@ -279,7 +279,7 @@ ProcXFixesCreateRegionFromPicture(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesCreateRegionFromPicture(ClientPtr client)
{
REQUEST(xXFixesCreateRegionFromPictureReq);
@@ -303,7 +303,7 @@ ProcXFixesDestroyRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesDestroyRegion(ClientPtr client)
{
REQUEST(xXFixesDestroyRegionReq);
@@ -341,7 +341,7 @@ ProcXFixesSetRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesSetRegion(ClientPtr client)
{
REQUEST(xXFixesSetRegionReq);
@@ -370,7 +370,7 @@ ProcXFixesCopyRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesCopyRegion(ClientPtr client)
{
REQUEST(xXFixesCopyRegionReq);
@@ -412,7 +412,7 @@ ProcXFixesCombineRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesCombineRegion(ClientPtr client)
{
REQUEST(xXFixesCombineRegionReq);
@@ -456,7 +456,7 @@ ProcXFixesInvertRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesInvertRegion(ClientPtr client)
{
REQUEST(xXFixesInvertRegionReq);
@@ -486,7 +486,7 @@ ProcXFixesTranslateRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesTranslateRegion(ClientPtr client)
{
REQUEST(xXFixesTranslateRegionReq);
@@ -515,7 +515,7 @@ ProcXFixesRegionExtents(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesRegionExtents(ClientPtr client)
{
REQUEST(xXFixesRegionExtentsReq);
@@ -580,7 +580,7 @@ ProcXFixesFetchRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesFetchRegion(ClientPtr client)
{
REQUEST(xXFixesFetchRegionReq);
@@ -623,7 +623,7 @@ ProcXFixesSetGCClipRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesSetGCClipRegion(ClientPtr client)
{
REQUEST(xXFixesSetGCClipRegionReq);
@@ -713,7 +713,7 @@ ProcXFixesSetWindowShapeRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesSetWindowShapeRegion(ClientPtr client)
{
REQUEST(xXFixesSetWindowShapeRegionReq);
@@ -746,7 +746,7 @@ ProcXFixesSetPictureClipRegion(ClientPtr client)
pRegion);
}
-int
+int _X_COLD
SProcXFixesSetPictureClipRegion(ClientPtr client)
{
REQUEST(xXFixesSetPictureClipRegionReq);
@@ -799,7 +799,7 @@ ProcXFixesExpandRegion(ClientPtr client)
return Success;
}
-int
+int _X_COLD
SProcXFixesExpandRegion(ClientPtr client)
{
REQUEST(xXFixesExpandRegionReq);
diff --git a/xserver/xfixes/saveset.c b/xserver/xfixes/saveset.c
index aa365cfe5..fd9c7a124 100644
--- a/xserver/xfixes/saveset.c
+++ b/xserver/xfixes/saveset.c
@@ -58,7 +58,7 @@ ProcXFixesChangeSaveSet(ClientPtr client)
return AlterSaveSetForClient(client, pWin, stuff->mode, toRoot, map);
}
-int
+int _X_COLD
SProcXFixesChangeSaveSet(ClientPtr client)
{
REQUEST(xXFixesChangeSaveSetReq);
diff --git a/xserver/xfixes/select.c b/xserver/xfixes/select.c
index 87a3ad777..19b2c7324 100644
--- a/xserver/xfixes/select.c
+++ b/xserver/xfixes/select.c
@@ -197,7 +197,7 @@ ProcXFixesSelectSelectionInput(ClientPtr client)
pWin, stuff->eventMask);
}
-int
+int _X_COLD
SProcXFixesSelectSelectionInput(ClientPtr client)
{
REQUEST(xXFixesSelectSelectionInputReq);
@@ -210,7 +210,7 @@ SProcXFixesSelectSelectionInput(ClientPtr client)
return (*ProcXFixesVector[stuff->xfixesReqType]) (client);
}
-void
+void _X_COLD
SXFixesSelectionNotifyEvent(xXFixesSelectionNotifyEvent * from,
xXFixesSelectionNotifyEvent * to)
{
diff --git a/xserver/xfixes/xfixes.c b/xserver/xfixes/xfixes.c
index 8b45c5349..53a6bd62f 100644
--- a/xserver/xfixes/xfixes.c
+++ b/xserver/xfixes/xfixes.c
@@ -105,8 +105,6 @@ static const int version_requests[] = {
X_XFixesDestroyPointerBarrier, /* Version 5 */
};
-#define NUM_VERSION_REQUESTS (sizeof (version_requests) / sizeof (version_requests[0]))
-
int (*ProcXFixesVector[XFixesNumberRequests]) (ClientPtr) = {
/*************** Version 1 ******************/
ProcXFixesQueryVersion,
@@ -149,14 +147,14 @@ ProcXFixesDispatch(ClientPtr client)
REQUEST(xXFixesReq);
XFixesClientPtr pXFixesClient = GetXFixesClient(client);
- if (pXFixesClient->major_version >= NUM_VERSION_REQUESTS)
+ if (pXFixesClient->major_version >= ARRAY_SIZE(version_requests))
return BadRequest;
if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version])
return BadRequest;
return (*ProcXFixesVector[stuff->xfixesReqType]) (client);
}
-static int
+static _X_COLD int
SProcXFixesQueryVersion(ClientPtr client)
{
REQUEST(xXFixesQueryVersionReq);
@@ -204,7 +202,7 @@ static int (*SProcXFixesVector[XFixesNumberRequests]) (ClientPtr) = {
/*************** Version 5 ****************/
SProcXFixesCreatePointerBarrier, SProcXFixesDestroyPointerBarrier,};
-static int
+static _X_COLD int
SProcXFixesDispatch(ClientPtr client)
{
REQUEST(xXFixesReq);