[PATCH] libXfixes v5: Pointer barriers

Julien Cristau jcristau at debian.org
Wed Feb 23 15:07:32 PST 2011


On Wed, Feb 23, 2011 at 11:52:02 -0500, Adam Jackson wrote:

> diff --git a/include/X11/extensions/Xfixes.h b/include/X11/extensions/Xfixes.h
> index 0c00310..481531c 100644
> --- a/include/X11/extensions/Xfixes.h
> +++ b/include/X11/extensions/Xfixes.h
> @@ -1,5 +1,6 @@
>  /*
>   * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
> + * Copyright 2010 Red Hat, Inc.
>   *
>   * Permission is hereby granted, free of charge, to any person obtaining a
>   * copy of this software and associated documentation files (the "Software"),
> @@ -249,6 +250,20 @@ XFixesShowCursor (Display *dpy, Window win);
>  
>  #endif /* XFIXES_MAJOR >= 4 */
>  
> +#if XFIXES_MAJOR >= 5
> +
> +typedef XID PointerBarrier;
> +
> +PointerBarrier
> +XFixesCreatePointerBarrier(Display *dpy, Window w, int x1, int y1,
> +			   int x2, int y2, int directions,
> +			   int num_devices, short *devices);
> +

the libXi API uses int for deviceid, so short here looks a bit
inconsistent (I know it's CARD16 on the wire so this doesn't really
matter).

> +void
> +XFixesDestroyPointerBarrier(Display *dpy, PointerBarrier b);
> +
> +#endif /* XFIXES_MAJOR >= 5 */
> +
>  _XFUNCPROTOEND
>  
>  #endif /* _XFIXES_H_ */

Cheers,
Julien


More information about the xorg-devel mailing list