diff options
author | Tomas Carnecky <tom@dbservice.com> | 2008-08-28 18:05:40 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-08-28 18:05:40 -0400 |
commit | ebea78cdba0ff14a397239ee1936bd254c181e1b (patch) | |
tree | 3937720753cc112aaf9eb71ba0dcb39674362b98 /xfixes | |
parent | ec7907f8fa04dcff2649cc4846975844314f737e (diff) |
Prepare for array-index based devPrivates.
TODO: static indices can be made just an int; some indices
can be combined.
Diffstat (limited to 'xfixes')
-rwxr-xr-x | xfixes/cursor.c | 4 | ||||
-rwxr-xr-x | xfixes/xfixes.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/xfixes/cursor.c b/xfixes/cursor.c index ca1739797..c4069d9b6 100755 --- a/xfixes/cursor.c +++ b/xfixes/cursor.c @@ -56,10 +56,12 @@ static RESTYPE CursorClientType; static RESTYPE CursorHideCountType; static RESTYPE CursorWindowType; -static DevPrivateKey CursorScreenPrivateKey = &CursorScreenPrivateKey; static CursorPtr CursorCurrent; static CursorPtr pInvisibleCursor = NULL; +static int CursorScreenPrivateKeyIndex; +static DevPrivateKey CursorScreenPrivateKey = &CursorScreenPrivateKeyIndex; + static void deleteCursorHideCountsForScreen (ScreenPtr pScreen); #define VERIFY_CURSOR(pCursor, cursor, client, access) { \ diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c index 0db49895e..d1225c6f3 100755 --- a/xfixes/xfixes.c +++ b/xfixes/xfixes.c @@ -56,7 +56,9 @@ static unsigned char XFixesReqCode; int XFixesEventBase; int XFixesErrorBase; -static DevPrivateKey XFixesClientPrivateKey = &XFixesClientPrivateKey; + +static int XFixesClientPrivateKeyIndex; +static DevPrivateKey XFixesClientPrivateKey = &XFixesClientPrivateKeyIndex; static int ProcXFixesQueryVersion(ClientPtr client) |