summaryrefslogtreecommitdiff
path: root/include/cursor.h
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-09-17 02:27:59 +0200
committerJamey Sharp <jamey@minilop.net>2011-09-19 22:53:05 -0700
commit8f69c935f6d06ad92fd0e8d9fcb3cde86cd258f5 (patch)
tree71dc068c65f821d836d651a738eea9806c12e521 /include/cursor.h
parentc96a43888ceae72bf89c66de911120c0b6b7a71a (diff)
Eliminate MAXSCREENS-sized CursorScreenKey array.
Use new per-screen privates API instead. Commit by Jamey Sharp and Josh Triplett. Signed-off-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/cursor.h')
-rw-r--r--include/cursor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cursor.h b/include/cursor.h
index 59978d4ca..394383a04 100644
--- a/include/cursor.h
+++ b/include/cursor.h
@@ -63,8 +63,8 @@ struct _DeviceIntRec;
typedef struct _Cursor *CursorPtr;
typedef struct _CursorMetric *CursorMetricPtr;
-extern _X_EXPORT DevPrivateKeyRec cursorScreenDevPriv[MAXSCREENS];
-#define CursorScreenKey(pScreen) (cursorScreenDevPriv + (pScreen)->myNum)
+extern _X_EXPORT DevScreenPrivateKeyRec cursorScreenDevPriv;
+#define CursorScreenKey (&cursorScreenDevPriv)
extern _X_EXPORT CursorPtr rootCursor;