Unverified Commit b40dec98 authored by Mihai Moldovan's avatar Mihai Moldovan

Merge branch 'uli42-pr/update_xfixes' into 3.6.x

parents 164263e1 35d166b8
...@@ -62,6 +62,7 @@ HEADERS = \ ...@@ -62,6 +62,7 @@ HEADERS = \
security.h securstr.h \ security.h securstr.h \
sync.h syncstr.h \ sync.h syncstr.h \
dpms.h dpmsstr.h \ dpms.h dpmsstr.h \
shapeconst.h \
$(NULL) $(NULL)
all:: all::
......
/************************************************************
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
********************************************************/
#ifndef _SHAPECONST_H_
#define _SHAPECONST_H_
/*
* Protocol requests constants and alignment values
* These would really be in SHAPE's X.h and Xproto.h equivalents
*/
#define SHAPENAME "SHAPE"
#define SHAPE_MAJOR_VERSION 1 /* current version numbers */
#define SHAPE_MINOR_VERSION 1
#define ShapeSet 0
#define ShapeUnion 1
#define ShapeIntersect 2
#define ShapeSubtract 3
#define ShapeInvert 4
#define ShapeBounding 0
#define ShapeClip 1
#define ShapeInput 2
#define ShapeNotifyMask (1L << 0)
#define ShapeNotify 0
#define ShapeNumberEvents (ShapeNotify + 1)
#endif /* _SHAPECONST_H_ */
/* /*
* $XFree86: xc/include/extensions/xfixesproto.h,v 1.1 2002/11/30 06:21:43 keithp Exp $ * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright 2010 Red Hat, Inc.
* *
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
* *
* Permission to use, copy, modify, distribute, and sell this software and its * Permission to use, copy, modify, distribute, and sell this software and its
...@@ -27,9 +48,7 @@ ...@@ -27,9 +48,7 @@
#include <nx-X11/Xmd.h> #include <nx-X11/Xmd.h>
#include <nx-X11/extensions/xfixeswire.h> #include <nx-X11/extensions/xfixeswire.h>
#define _SHAPE_SERVER_ #include <nx-X11/extensions/shapeconst.h>
#include <X11/extensions/shape.h>
#undef _SHAPE_SERVER_
#define Window CARD32 #define Window CARD32
#define Drawable CARD32 #define Drawable CARD32
...@@ -462,6 +481,58 @@ typedef struct { ...@@ -462,6 +481,58 @@ typedef struct {
#define sz_xXFixesExpandRegionReq 20 #define sz_xXFixesExpandRegionReq 20
/*************** Version 4.0 ******************/
typedef struct {
CARD8 reqType;
CARD8 xfixesReqType;
CARD16 length B16;
Window window B32;
} xXFixesHideCursorReq;
#define sz_xXFixesHideCursorReq sizeof(xXFixesHideCursorReq)
typedef struct {
CARD8 reqType;
CARD8 xfixesReqType;
CARD16 length B16;
Window window B32;
} xXFixesShowCursorReq;
#define sz_xXFixesShowCursorReq sizeof(xXFixesShowCursorReq)
/*************** Version 5.0 ******************/
#define Barrier CARD32
typedef struct {
CARD8 reqType;
CARD8 xfixesReqType;
CARD16 length B16;
Barrier barrier B32;
Window window B32;
INT16 x1 B16;
INT16 y1 B16;
INT16 x2 B16;
INT16 y2 B16;
CARD32 directions;
CARD16 pad B16;
CARD16 num_devices B16;
/* array of CARD16 devices */
} xXFixesCreatePointerBarrierReq;
#define sz_xXFixesCreatePointerBarrierReq 28
typedef struct {
CARD8 reqType;
CARD8 xfixesReqType;
CARD16 length B16;
Barrier barrier B32;
} xXFixesDestroyPointerBarrierReq;
#define sz_xXFixesDestroyPointerBarrierReq 8
#undef Barrier
#undef Region #undef Region
#undef Picture #undef Picture
#undef Window #undef Window
......
/* /*
* $XFree86: xc/include/extensions/xfixeswire.h,v 1.1 2002/11/30 06:21:43 keithp Exp $ * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright 2010 Red Hat, Inc.
* *
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
* *
* Permission to use, copy, modify, distribute, and sell this software and its * Permission to use, copy, modify, distribute, and sell this software and its
...@@ -27,7 +48,7 @@ ...@@ -27,7 +48,7 @@
#define _XFIXESWIRE_H_ #define _XFIXESWIRE_H_
#define XFIXES_NAME "XFIXES" #define XFIXES_NAME "XFIXES"
#define XFIXES_MAJOR 3 #define XFIXES_MAJOR 4
#define XFIXES_MINOR 0 #define XFIXES_MINOR 0
/*************** Version 1 ******************/ /*************** Version 1 ******************/
...@@ -62,8 +83,14 @@ ...@@ -62,8 +83,14 @@
#define X_XFixesChangeCursorByName 27 #define X_XFixesChangeCursorByName 27
/*************** Version 3 ******************/ /*************** Version 3 ******************/
#define X_XFixesExpandRegion 28 #define X_XFixesExpandRegion 28
/*************** Version 4 ******************/
#define X_XFixesHideCursor 29
#define X_XFixesShowCursor 30
/*************** Version 5 ******************/
#define X_XFixesCreatePointerBarrier 31
#define X_XFixesDestroyPointerBarrier 32
#define XFixesNumberRequests 29 #define XFixesNumberRequests (X_XFixesDestroyPointerBarrier+1)
/* Selection events share one event number */ /* Selection events share one event number */
#define XFixesSelectionNotify 0 #define XFixesSelectionNotify 0
...@@ -88,7 +115,8 @@ ...@@ -88,7 +115,8 @@
/* errors */ /* errors */
#define BadRegion 0 #define BadRegion 0
#define XFixesNumberErrors (BadRegion+1) #define BadBarrier 1
#define XFixesNumberErrors (BadBarrier+1)
#define SaveSetNearest 0 #define SaveSetNearest 0
#define SaveSetRoot 1 #define SaveSetRoot 1
...@@ -101,4 +129,11 @@ ...@@ -101,4 +129,11 @@
#define WindowRegionBounding 0 #define WindowRegionBounding 0
#define WindowRegionClip 1 #define WindowRegionClip 1
/*************** Version 5 ******************/
#define BarrierPositiveX (1L << 0)
#define BarrierPositiveY (1L << 1)
#define BarrierNegativeX (1L << 2)
#define BarrierNegativeY (1L << 3)
#endif /* _XFIXESWIRE_H_ */ #endif /* _XFIXESWIRE_H_ */
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
#define SERVER_XFIXES_MAJOR_VERSION 5 #define SERVER_XFIXES_MAJOR_VERSION 5
#define SERVER_XFIXES_MINOR_VERSION 0 #define SERVER_XFIXES_MINOR_VERSION 0
#else /* !defined(NXAGENT_SERVER) */ #else /* !defined(NXAGENT_SERVER) */
#define SERVER_XFIXES_MAJOR_VERSION 3 #define SERVER_XFIXES_MAJOR_VERSION 4
#define SERVER_XFIXES_MINOR_VERSION 0 #define SERVER_XFIXES_MINOR_VERSION 0
#endif /* !defined(NXAGENT_SERVER) */ #endif /* !defined(NXAGENT_SERVER) */
......
/* /*
* $Id: region.c,v 1.7 2005/07/03 07:37:35 daniels Exp $
*
* Copyright © 2003 Keith Packard * Copyright © 2003 Keith Packard
* *
* Permission to use, copy, modify, distribute, and sell this software and its * Permission to use, copy, modify, distribute, and sell this software and its
...@@ -217,12 +215,21 @@ ProcXFixesCreateRegionFromGC (ClientPtr client) ...@@ -217,12 +215,21 @@ ProcXFixesCreateRegionFromGC (ClientPtr client)
{ {
RegionPtr pRegion, pClip; RegionPtr pRegion, pClip;
GCPtr pGC; GCPtr pGC;
#ifndef NXAGENT_SERVER
int rc;
#endif
REQUEST (xXFixesCreateRegionFromGCReq); REQUEST (xXFixesCreateRegionFromGCReq);
REQUEST_SIZE_MATCH (xXFixesCreateRegionFromGCReq); REQUEST_SIZE_MATCH (xXFixesCreateRegionFromGCReq);
LEGAL_NEW_RESOURCE (stuff->region, client); LEGAL_NEW_RESOURCE (stuff->region, client);
#ifndef NXAGENT_SERVER
rc = dixLookupGC(&pGC, stuff->gc, client, DixReadAccess);
if (rc != Success)
return rc;
#else
SECURITY_VERIFY_GC(pGC, stuff->gc, client, DixReadAccess); SECURITY_VERIFY_GC(pGC, stuff->gc, client, DixReadAccess);
#endif
switch (pGC->clientClipType) { switch (pGC->clientClipType) {
case CT_PIXMAP: case CT_PIXMAP:
...@@ -615,10 +622,20 @@ ProcXFixesSetGCClipRegion (ClientPtr client) ...@@ -615,10 +622,20 @@ ProcXFixesSetGCClipRegion (ClientPtr client)
GCPtr pGC; GCPtr pGC;
RegionPtr pRegion; RegionPtr pRegion;
XID vals[2]; XID vals[2];
#ifndef NXAGENT_SERVER
int rc;
#endif
REQUEST(xXFixesSetGCClipRegionReq); REQUEST(xXFixesSetGCClipRegionReq);
REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq); REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq);
#ifndef NXAGENT_SERVER
rc = dixLookupGC(&pGC, stuff->gc, client, DixWriteAccess);
if (rc != Success)
return rc;
#else
SECURITY_VERIFY_GC(pGC, stuff->gc, client, DixWriteAccess); SECURITY_VERIFY_GC(pGC, stuff->gc, client, DixWriteAccess);
#endif
VERIFY_REGION_OR_NONE (pRegion, stuff->region, client, DixReadAccess); VERIFY_REGION_OR_NONE (pRegion, stuff->region, client, DixReadAccess);
if (pRegion) if (pRegion)
......
/* /*
* $Id: saveset.c,v 1.6 2005/07/03 07:37:35 daniels Exp $
*
* Copyright © 2002 Keith Packard * Copyright © 2002 Keith Packard
* *
* Permission to use, copy, modify, distribute, and sell this software and its * Permission to use, copy, modify, distribute, and sell this software and its
...@@ -37,10 +35,16 @@ ProcXFixesChangeSaveSet(ClientPtr client) ...@@ -37,10 +35,16 @@ ProcXFixesChangeSaveSet(ClientPtr client)
REQUEST(xXFixesChangeSaveSetReq); REQUEST(xXFixesChangeSaveSetReq);
REQUEST_SIZE_MATCH(xXFixesChangeSaveSetReq); REQUEST_SIZE_MATCH(xXFixesChangeSaveSetReq);
#ifndef NXAGENT_SERVER
result = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
if (result != Success)
return result;
#else
pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client, pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client,
DixReadAccess); DixReadAccess);
if (!pWin) if (!pWin)
return(BadWindow); return(BadWindow);
#endif
if (client->clientAsMask == (CLIENT_BITS(pWin->drawable.id))) if (client->clientAsMask == (CLIENT_BITS(pWin->drawable.id)))
return BadMatch; return BadMatch;
if ((stuff->mode != SetModeInsert) && (stuff->mode != SetModeDelete)) if ((stuff->mode != SetModeInsert) && (stuff->mode != SetModeDelete))
......
/* /*
* $Id: select.c,v 1.6 2005/07/03 07:37:35 daniels Exp $
*
* Copyright © 2002 Keith Packard * Copyright © 2002 Keith Packard
* *
* Permission to use, copy, modify, distribute, and sell this software and its * Permission to use, copy, modify, distribute, and sell this software and its
...@@ -195,12 +193,21 @@ ProcXFixesSelectSelectionInput (ClientPtr client) ...@@ -195,12 +193,21 @@ ProcXFixesSelectSelectionInput (ClientPtr client)
{ {
REQUEST (xXFixesSelectSelectionInputReq); REQUEST (xXFixesSelectSelectionInputReq);
WindowPtr pWin; WindowPtr pWin;
#ifndef NXAGENT_SERVER
int rc;
#endif
REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq); REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq);
#ifndef NXAGENT_SERVER
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
if (rc != Success)
return rc;
#else
pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client, pWin = (WindowPtr)SecurityLookupWindow(stuff->window, client,
DixReadAccess); DixReadAccess);
if (!pWin) if (!pWin)
return(BadWindow); return(BadWindow);
#endif
if (stuff->eventMask & ~SelectionAllEvents) if (stuff->eventMask & ~SelectionAllEvents)
{ {
client->errorValue = stuff->eventMask; client->errorValue = stuff->eventMask;
......
/* /*
* $Id: xfixes.c,v 1.7 2005/07/03 07:37:35 daniels Exp $ * Copyright © 2006 Sun Microsystems
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Sun Microsystems not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. Sun Microsystems makes no
* representations about the suitability of this software for any purpose. It
* is provided "as is" without express or implied warranty.
*
* SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
* *
* Copyright © 2002 Keith Packard * Copyright © 2002 Keith Packard
* *
...@@ -29,10 +47,10 @@ ...@@ -29,10 +47,10 @@
#include "xfixesint.h" #include "xfixesint.h"
#include "protocol-versions.h" #include "protocol-versions.h"
unsigned char XFixesReqCode; static unsigned char XFixesReqCode;
int XFixesEventBase; int XFixesEventBase;
int XFixesErrorBase; int XFixesErrorBase;
int XFixesClientPrivateIndex; static int XFixesClientPrivateIndex;
static int static int
ProcXFixesQueryVersion(ClientPtr client) ProcXFixesQueryVersion(ClientPtr client)
...@@ -75,6 +93,7 @@ static const int version_requests[] = { ...@@ -75,6 +93,7 @@ static const int version_requests[] = {
X_XFixesGetCursorImage, /* Version 1 */ X_XFixesGetCursorImage, /* Version 1 */
X_XFixesChangeCursorByName, /* Version 2 */ X_XFixesChangeCursorByName, /* Version 2 */
X_XFixesExpandRegion, /* Version 3 */ X_XFixesExpandRegion, /* Version 3 */
X_XFixesShowCursor, /* Version 4 */
}; };
#define NUM_VERSION_REQUESTS (sizeof (version_requests) / sizeof (version_requests[0])) #define NUM_VERSION_REQUESTS (sizeof (version_requests) / sizeof (version_requests[0]))
...@@ -112,6 +131,9 @@ int (*ProcXFixesVector[XFixesNumberRequests])(ClientPtr) = { ...@@ -112,6 +131,9 @@ int (*ProcXFixesVector[XFixesNumberRequests])(ClientPtr) = {
ProcXFixesChangeCursorByName, ProcXFixesChangeCursorByName,
/*************** Version 3 ******************/ /*************** Version 3 ******************/
ProcXFixesExpandRegion, ProcXFixesExpandRegion,
/*************** Version 4 ****************/
ProcXFixesHideCursor,
ProcXFixesShowCursor,
}; };
static int static int
...@@ -138,7 +160,7 @@ SProcXFixesQueryVersion(ClientPtr client) ...@@ -138,7 +160,7 @@ SProcXFixesQueryVersion(ClientPtr client)
return (*ProcXFixesVector[stuff->xfixesReqType]) (client); return (*ProcXFixesVector[stuff->xfixesReqType]) (client);
} }
int (*SProcXFixesVector[XFixesNumberRequests])(ClientPtr) = { static int (*SProcXFixesVector[XFixesNumberRequests])(ClientPtr) = {
/*************** Version 1 ******************/ /*************** Version 1 ******************/
SProcXFixesQueryVersion, SProcXFixesQueryVersion,
SProcXFixesChangeSaveSet, SProcXFixesChangeSaveSet,
...@@ -171,6 +193,9 @@ int (*SProcXFixesVector[XFixesNumberRequests])(ClientPtr) = { ...@@ -171,6 +193,9 @@ int (*SProcXFixesVector[XFixesNumberRequests])(ClientPtr) = {
SProcXFixesChangeCursorByName, SProcXFixesChangeCursorByName,
/*************** Version 3 ******************/ /*************** Version 3 ******************/
SProcXFixesExpandRegion, SProcXFixesExpandRegion,
/*************** Version 4 ****************/
SProcXFixesHideCursor,
SProcXFixesShowCursor,
}; };
static int static int
......
/* /*
* $Id: xfixes.h,v 1.6 2005/07/03 07:02:08 daniels Exp $
*
* Copyright © 2002 Keith Packard * Copyright © 2002 Keith Packard
* *
* Permission to use, copy, modify, distribute, and sell this software and its * Permission to use, copy, modify, distribute, and sell this software and its
......
/* /*
* $Id: xfixesint.h,v 1.7 2005/07/03 08:53:54 daniels Exp $ * Copyright © 2006 Sun Microsystems
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Sun Microsystems not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. Sun Microsystems makes no
* representations about the suitability of this software for any purpose. It
* is provided "as is" without express or implied warranty.
*
* SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
* *
* Copyright © 2002 Keith Packard * Copyright © 2002 Keith Packard
* *
...@@ -40,9 +58,7 @@ ...@@ -40,9 +58,7 @@
#include "selection.h" #include "selection.h"
#include "xfixes.h" #include "xfixes.h"
extern unsigned char XFixesReqCode;
extern int XFixesEventBase; extern int XFixesEventBase;
extern int XFixesClientPrivateIndex;
typedef struct _XFixesClient { typedef struct _XFixesClient {
CARD32 major_version; CARD32 major_version;
...@@ -52,7 +68,6 @@ typedef struct _XFixesClient { ...@@ -52,7 +68,6 @@ typedef struct _XFixesClient {
#define GetXFixesClient(pClient) ((XFixesClientPtr) (pClient)->devPrivates[XFixesClientPrivateIndex].ptr) #define GetXFixesClient(pClient) ((XFixesClientPtr) (pClient)->devPrivates[XFixesClientPrivateIndex].ptr)
extern int (*ProcXFixesVector[XFixesNumberRequests])(ClientPtr); extern int (*ProcXFixesVector[XFixesNumberRequests])(ClientPtr);
extern int (*SProcXFixesVector[XFixesNumberRequests])(ClientPtr);
/* Initialize extension at server startup time */ /* Initialize extension at server startup time */
...@@ -62,10 +77,10 @@ XFixesExtensionInit(void); ...@@ -62,10 +77,10 @@ XFixesExtensionInit(void);
/* Save set */ /* Save set */
int int
ProcXFixesChangeSaveSet(ClientPtr client); ProcXFixesChangeSaveSet(ClientPtr client);
int int
SProcXFixesChangeSaveSet(ClientPtr client); SProcXFixesChangeSaveSet(ClientPtr client);
/* Selection events */ /* Selection events */
int int
ProcXFixesSelectSelectionInput (ClientPtr client); ProcXFixesSelectSelectionInput (ClientPtr client);
...@@ -82,7 +97,7 @@ XFixesSelectionInit (void); ...@@ -82,7 +97,7 @@ XFixesSelectionInit (void);
/* Cursor notification */ /* Cursor notification */
Bool Bool
XFixesCursorInit (void); XFixesCursorInit (void);
int int
ProcXFixesSelectCursorInput (ClientPtr client); ProcXFixesSelectCursorInput (ClientPtr client);
...@@ -239,4 +254,18 @@ ProcXFixesExpandRegion (ClientPtr client); ...@@ -239,4 +254,18 @@ ProcXFixesExpandRegion (ClientPtr client);
int int
SProcXFixesExpandRegion (ClientPtr client); SProcXFixesExpandRegion (ClientPtr client);
/* Cursor Visibility (Version 4) */
int
ProcXFixesHideCursor (ClientPtr client);
int
SProcXFixesHideCursor (ClientPtr client);
int
ProcXFixesShowCursor (ClientPtr client);
int
SProcXFixesShowCursor (ClientPtr client);
#endif /* _XFIXESINT_H_ */ #endif /* _XFIXESINT_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment