[PATCH xserver 11/17] Input: Export GetEventMask

Peter Hutterer peter.hutterer at who-t.net
Tue Jan 4 20:20:11 PST 2011


On Tue, Dec 28, 2010 at 05:58:02PM +0000, Daniel Stone wrote:
> Make it non-static, add to headers.
> 
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>

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

> ---
>  dix/events.c    |    2 +-
>  include/input.h |    1 +
>  2 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/dix/events.c b/dix/events.c
> index 45d9eab..ff6e008 100644
> --- a/dix/events.c
> +++ b/dix/events.c
> @@ -439,7 +439,7 @@ GetWindowXI2Mask(DeviceIntPtr dev, WindowPtr win, xEvent* ev)
>              (inputMasks->xi2mask[XIAllMasterDevices][evtype/8] && IsMaster(dev)));
>  }
>  
> -static Mask
> +Mask
>  GetEventMask(DeviceIntPtr dev, xEvent *event, InputClients* other)
>  {
>      /* XI2 filters are only ever 8 bit, so let's return a 8 bit mask */
> diff --git a/include/input.h b/include/input.h
> index c1db544..56992d1 100644
> --- a/include/input.h
> +++ b/include/input.h
> @@ -526,6 +526,7 @@ extern _X_EXPORT InputAttributes *DuplicateInputAttributes(InputAttributes *attr
>  extern _X_EXPORT void FreeInputAttributes(InputAttributes *attrs);
>  
>  /* misc event helpers */
> +extern Mask GetEventMask(DeviceIntPtr dev, xEvent* ev, InputClientsPtr clients);
>  extern Mask GetEventFilter(DeviceIntPtr dev, xEvent *event);
>  extern Mask GetWindowXI2Mask(DeviceIntPtr dev, WindowPtr win, xEvent* ev);
>  void FixUpEventFromWindow(SpritePtr pSprite,
> -- 
> 1.7.2.3


More information about the xorg-devel mailing list