dix: Add ClientPointer to client, used for picking which pointer to use in

ambiguious request. PickPointer and PickKeyboard are used for getting
        the appropriate pointer when situation is unclear.
        Fix some issues with InitializeSprite.

dix, xfree86: Remove last traces of InitSprite.
This commit is contained in:
Peter Hutterer
2007-03-02 15:21:46 +10:30
committed by Peter Hutterer
parent 43bd35fcf8
commit e43b8a4e40
7 changed files with 152 additions and 79 deletions

View File

@@ -602,6 +602,12 @@ extern int TryClientEvents(
extern void WindowsRestructured(void);
extern DeviceIntPtr PickPointer(
ClientPtr /* client */);
extern DeviceIntPtr PickKeyboard(
ClientPtr /* client */);
#ifdef PANORAMIX
extern void ReinitializeRootWindow(WindowPtr win, int xoff, int yoff);
#endif

View File

@@ -140,6 +140,8 @@ typedef struct _Client {
long smart_stop_tick;
long smart_check_tick;
#endif
DeviceIntPtr clientPtr;
} ClientRec;
#ifdef SMART_SCHEDULE

View File

@@ -450,6 +450,8 @@ extern int PairDevices(ClientPtr client,
DeviceIntPtr pointer,
DeviceIntPtr keyboard);
extern DeviceIntPtr GetPairedPointer(DeviceIntPtr kbd);
extern Bool RegisterPairingClient(ClientPtr client);
extern Bool UnregisterPairingClient(ClientPtr client);