[PATCH] prevent X crash on pressing multimedia buttons, again
Peter Hutterer
peter.hutterer at who-t.net
Wed May 23 19:42:36 PDT 2012
On Wed, May 23, 2012 at 11:27:51AM +0200, Michal Suchanek wrote:
> From b824be59ebf7e9847e9e851eeb6e6c3d80c9a764 Mon Sep 17 00:00:00 2001
> From: Michal Suchanek <hramrach at gmail.com>
> Date: Wed, 23 May 2012 11:22:05 +0200
> Subject: [PATCH] Fix yet another crash in pointer event queuing.
>
> Signed-off-by: Michal Suchanek <hramrach at gmail.com>
> ---
> dix/getevents.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dix/getevents.c b/dix/getevents.c
> index 9dc9617..6093799 100644
> --- a/dix/getevents.c
> +++ b/dix/getevents.c
> @@ -1574,7 +1574,7 @@ GetPointerEvents(InternalEvent *events, DeviceIntPtr pDev, int type,
> /* Now turn the smooth-scrolling axes back into emulated button presses
> * for legacy clients, based on the integer delta between before and now */
> for (i = 0; i < valuator_mask_size(&mask); i++) {
> - if (i >= pDev->valuator->numAxes)
> + if ( !pDev->valuator || (i >= pDev->valuator->numAxes))
> break;
>
> if (!valuator_mask_isset(&mask, i))
> --
> 1.7.10
what is the trigger for this again? Is this the warp pointer case?
Cheers,
Peter
More information about the xorg-devel
mailing list