[PATCH 6/6] xserver: input device id counter fix
Jesse Barnes
jbarnes at virtuousgeek.org
Wed Mar 28 17:04:42 PDT 2007
On Wednesday, March 28, 2007 3:12 pm Magnus Vigerlöf wrote:
> Input device id counter fix
>
> Change of the id calculaton for every new attached input device. The
> first available id is now used and the device count is now decreased
> when one is removed.
>
> --
> dix/devices.c | 23 +++++++++++++++++++----
> 1 files changed, 19 insertions(+), 4 deletions(-)
>
> --
> diff --git a/dix/devices.c b/dix/devices.c
> index f622be7..6536c4b 100644
> --- a/dix/devices.c
> +++ b/dix/devices.c
> @@ -82,20 +82,32 @@ #include "exevents.h"
> int CoreDevicePrivatesIndex = 0;
> static int CoreDevicePrivatesGeneration = -1;
>
> +/* Array of pointers to the current devices for simple calculation
> + * of the next free device id. */
> +static DeviceIntPtr *inputDeviceArrayId = NULL;
I guess we don't need locking in the X server. Good thing too, I think
more than just this would have trouble.
Seems ok, but I don't know enough about input device tracking to say for
sure.
Jesse
More information about the xorg
mailing list