[PATCH] dix: Add a Screen method for additional cursor confinement

Adam Jackson ajax at redhat.com
Wed Jan 5 14:00:52 PST 2011


This just reserves the slot in the ABI. Confining cursors to CRTCs will
come soon.

v2: Just reserve the slot.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 include/scrnintstr.h |    4 ++++
 1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/scrnintstr.h b/include/scrnintstr.h
index 00d014c..2635d99 100644
--- a/include/scrnintstr.h
+++ b/include/scrnintstr.h
@@ -402,6 +402,9 @@ typedef    void (* DeviceCursorCleanupProcPtr)(
         DeviceIntPtr /* pDev */,
         ScreenPtr    /* pScreen */);
 
+typedef void (*ConstrainCursorHarderProcPtr)(
+       DeviceIntPtr, ScreenPtr, int *, int *);
+
 typedef struct _Screen {
     int			myNum;	/* index of this instance in Screens[] */
     ATOM		id;
@@ -468,6 +471,7 @@ typedef struct _Screen {
     /* Cursor Procedures */
 
     ConstrainCursorProcPtr	ConstrainCursor;
+    ConstrainCursorHarderProcPtr ConstrainCursorHarder;
     CursorLimitsProcPtr		CursorLimits;
     DisplayCursorProcPtr	DisplayCursor;
     RealizeCursorProcPtr	RealizeCursor;
-- 
1.7.3.4



More information about the xorg-devel mailing list