summaryrefslogtreecommitdiff
path: root/include/inputstr.h
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2010-05-18 13:53:29 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2010-05-19 18:37:01 +0300
commit66d5ecc5fd36e21715531a39ac83dc2b6b988a7e (patch)
tree1e66efaf65fdb1e51150c7f7cb1ec0332256272c /include/inputstr.h
parentc3ba199aa643e59abd30170c53fbb4e03077c377 (diff)
render: set anim cursor state for pointer enabled devices only
The structure containing the state of animated cursor was amended within SpriteInfoRec, removing all previously privates logic to keep such state. API change: It was removed MAXDEVICES dependency \o/ Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/inputstr.h')
-rw-r--r--include/inputstr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/inputstr.h b/include/inputstr.h
index 6da3f38e4..c5b9ff71a 100644
--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -477,6 +477,14 @@ typedef struct _SpriteInfoRec {
DeviceIntPtr paired; /* The paired device. Keyboard if
spriteOwner is TRUE, otherwise the
pointer that owns the sprite. */
+
+ /* keep states for animated cursor */
+ struct {
+ CursorPtr pCursor;
+ ScreenPtr pScreen;
+ int elt;
+ CARD32 time;
+ } anim;
} SpriteInfoRec, *SpriteInfoPtr;
/* device types */