[PATCH xserver 4/9] xkb: Hold input lock across injected key event processing

Peter Hutterer peter.hutterer at who-t.net
Mon May 16 05:19:01 UTC 2016


On Wed, May 11, 2016 at 01:54:53PM -0700, Keith Packard wrote:
> This makes the code more consistent with other versions of
> out-of-queue event processing
> 
> Signed-off-by: Keith Packard <keithp at keithp.com>

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
   Peter

> ---
>  xkb/xkbActions.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
> index afe5edf..048ed44 100644
> --- a/xkb/xkbActions.c
> +++ b/xkb/xkbActions.c
> @@ -1534,13 +1534,12 @@ InjectPointerKeyEvents(DeviceIntPtr dev, int type, int button, int flags,
>          UpdateFromMaster(&events[nevents], lastSlave, DEVCHANGE_POINTER_EVENT,
>                           &nevents);
>      miPointerSetWaitForUpdate(pScreen, saveWait);
> -    input_unlock();
>  
>      for (i = 0; i < nevents; i++)
>          mieqProcessDeviceEvent(ptr, &events[i], NULL);
> +    input_unlock();
>  
>      FreeEventList(events, GetMaximumEventsNum());
> -
>  }
>  
>  static void
> -- 
> 2.8.0.rc3
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list