[PATCH xserver 11/17] Input: Export GetEventMask

Daniel Stone daniel at fooishbar.org
Tue Dec 28 09:58:02 PST 2010


Make it non-static, add to headers.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 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