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.
This commit is contained in:
Peter Hutterer 2007-10-14 04:13:06 +09:30
parent bd7d5255ce
commit 204f2dc89e

View File

@ -357,8 +357,9 @@ typedef struct _SpriteInfoRec {
* sprite, let sprite point to a paired spriteOwner's sprite. */ * sprite, let sprite point to a paired spriteOwner's sprite. */
SpritePtr sprite; /* sprite information */ SpritePtr sprite; /* sprite information */
Bool spriteOwner; /* True if device owns the sprite */ Bool spriteOwner; /* True if device owns the sprite */
DeviceIntPtr paired; /* the real owner of the sprite or DeviceIntPtr paired; /* The paired device. Keyboard if
NULL if spriteOwner is TRUE*/ spriteOwner is TRUE, otherwise the
pointer that owns the sprite. */
} SpriteInfoRec, *SpriteInfoPtr; } SpriteInfoRec, *SpriteInfoPtr;
typedef struct _DeviceIntRec { typedef struct _DeviceIntRec {
@ -373,6 +374,7 @@ typedef struct _DeviceIntRec {
Bool enabled; /* TRUE if ON returns Success */ Bool enabled; /* TRUE if ON returns Success */
Bool coreEvents; /* TRUE if device also sends core */ Bool coreEvents; /* TRUE if device also sends core */
GrabInfoRec deviceGrab; /* grab on the device */ GrabInfoRec deviceGrab; /* grab on the device */
Bool isMaster; /* TRUE if device is master */
Atom type; Atom type;
char *name; char *name;
CARD8 id; CARD8 id;