summaryrefslogtreecommitdiff
path: root/include/dix.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2010-12-07 11:48:14 +0000
committerDaniel Stone <daniel@fooishbar.org>2011-01-06 17:11:00 +0000
commitce74e7562dcc800306ff92b6d3c5ee885cd4763d (patch)
tree15ed153e02b3e0b4d08b594f73e58eb2b9d774bd /include/dix.h
parenteb5aaf5eb819f1287ce40da79edbe07bafb2b5c0 (diff)
Input: Make CheckPassiveGrabsOnWindow return grab, export
Change CheckPassiveGrabsOnWindow to return the GrabPtr it used (or NULL if none) rather than a boolean, and export it. Also add an additional boolean 'activate' parameter; use TRUE for existing behaviour, or FALSE to only find the grab and then return it. This will be used in forthcoming touch patches to find the grabs, rather than open-coding same. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/dix.h')
-rw-r--r--include/dix.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dix.h b/include/dix.h
index 7485e8ed4..12e4b5977 100644
--- a/include/dix.h
+++ b/include/dix.h
@@ -372,6 +372,13 @@ extern void AllowSome(
extern void ReleaseActiveGrabs(
ClientPtr client);
+extern GrabPtr CheckPassiveGrabsOnWindow(
+ WindowPtr /* pWin */,
+ DeviceIntPtr /* device */,
+ DeviceEvent * /* event */,
+ BOOL /* checkCore */,
+ BOOL /* activate */);
+
extern _X_EXPORT int DeliverEventsToWindow(
DeviceIntPtr /* pWin */,
WindowPtr /* pWin */,