Xi: Adding ChangePointerKeyboardPairing request

Adding PointerKeyboardPairingChanged event
	Correct error values for XWarpDevicePointer

dix:	Adding device argument to SendMappingNotify
	Adding spriteOwner flag to devices
This commit is contained in:
Peter Hutterer 2007-01-29 18:23:24 +10:30 committed by Peter Hutterer
commit 4aaaa70d1b
13 changed files with 226 additions and 27 deletions

View file

@ -121,6 +121,12 @@ SDeviceLeaveNotifyEvent (
deviceLeaveNotify * /* to */
);
void
SPointerKeyboardPairingChangedNotifyEvent (
pairingChangedNotify * /* from */,
pairingChangedNotify * /* to */
);
void
FixExtensionEvents (
ExtensionEntry * /* extEntry */
@ -143,7 +149,7 @@ AssignTypeAndName (
char * /* name */
);
Bool MayNeedPointer(
Bool IsPointerDevice(
DeviceIntPtr /* dev */
);

View file

@ -323,6 +323,7 @@ extern Bool InitKeyboardDeviceStruct(
KbdCtrlProcPtr /*controlProc*/);
extern void SendMappingNotify(
DeviceIntPtr /* pDev */,
unsigned int /*request*/,
unsigned int /*firstKeyCode*/,
unsigned int /*count*/,

View file

@ -178,7 +178,7 @@ typedef struct _ButtonClassRec {
} ButtonClassRec, *ButtonClassPtr;
typedef struct _FocusClassRec {
WindowPtr win;
WindowPtr win; /* May be set to a int constant (e.g. PointerRootWin)! */
int revert;
TimeStamp time;
WindowPtr *trace;
@ -355,7 +355,12 @@ typedef struct _DeviceIntRec {
int nPrivates;
DeviceUnwrapProc unwrapProc;
Bool isMPDev; /* TRUE if multipointer device */
/* Each devices has a sprite. However, keyboards and shared pointers do
not in fact own a sprite but rather have their pointer set to the
sprite of another device. pSprite always has to point to a valid
sprite. spriteOwner indicates whether it is the device's sprite. */
SpritePtr pSprite; /* sprite information */
Bool spriteOwner; /* FALSE if shared sprite, see above*/
} DeviceIntRec;
typedef struct {