summaryrefslogtreecommitdiff
path: root/include/inputstr.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-10-14 04:13:06 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-10-16 11:19:09 +0930
commit204f2dc89ef662b57400b128c30c15e8cf32f323 (patch)
tree809f0bd2e29d1a6c7f7328520ee753bec1154e53 /include/inputstr.h
parentbd7d5255ce4865b684f7d8bcf80ba9872a1af22d (diff)
include: add "isMaster" field to DeviceIntRec.
Set to TRUE for master devices. Also fixing up comment for paired field in spriteInfo, will be set bidirectional from now on.
Diffstat (limited to 'include/inputstr.h')
-rw-r--r--include/inputstr.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/inputstr.h b/include/inputstr.h
index 146fbc8b6..d96e24a96 100644
--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -357,8 +357,9 @@ typedef struct _SpriteInfoRec {
* sprite, let sprite point to a paired spriteOwner's sprite. */
SpritePtr sprite; /* sprite information */
Bool spriteOwner; /* True if device owns the sprite */
- DeviceIntPtr paired; /* the real owner of the sprite or
- NULL if spriteOwner is TRUE*/
+ DeviceIntPtr paired; /* The paired device. Keyboard if
+ spriteOwner is TRUE, otherwise the
+ pointer that owns the sprite. */
} SpriteInfoRec, *SpriteInfoPtr;
typedef struct _DeviceIntRec {
@@ -373,6 +374,7 @@ typedef struct _DeviceIntRec {
Bool enabled; /* TRUE if ON returns Success */
Bool coreEvents; /* TRUE if device also sends core */
GrabInfoRec deviceGrab; /* grab on the device */
+ Bool isMaster; /* TRUE if device is master */
Atom type;
char *name;
CARD8 id;