summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2010-12-28 12:15:28 +0000
committerChase Douglas <chase.douglas@canonical.com>2011-01-05 13:17:32 -0500
commit11e5655c512cbce09f76161e80608c562608a9df (patch)
tree1f4ec3995ab862da417d30a7d095bf65bc1c7270
parent7b964b06d443d9a572a1776cd2a3a65fc2de7e23 (diff)
Input: Export GetEventMask
Make it non-static, add to headers. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--dix/events.c2
-rw-r--r--include/input.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c
index c7917d2f4..f1b787258 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 c1db5444f..56992d134 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,