dix: Fix wrong cursor refcount.

Calloc cursor struct to ensure devPrivates are zeroed out and don't
        increase the refcnt for devices automatically when allocating a new
        cursor. Use new DeviceIsPointerType() to detect if device is a pointer
        _before_ device has been activated and can thus be identified and set
        up grab functions accordingly. This way we can increase the refcnt
        when we get a pointer grab.
This commit is contained in:
Peter Hutterer
2007-03-30 14:59:43 +09:30
parent 20e4314b17
commit 63d8f01819
6 changed files with 34 additions and 39 deletions

View File

@@ -142,6 +142,11 @@ IResetProc(
ExtensionEntry * /* unused */
);
Bool
DeviceIsPointerType(
DeviceIntPtr dev
);
void
AssignTypeAndName (
DeviceIntPtr /* dev */,