summaryrefslogtreecommitdiff
path: root/include/dixgrabs.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-11-04 10:44:31 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-09 14:56:23 +1000
commitb0e9e2e32616d09c30a02b9d0ae9db0b13e150d1 (patch)
treeed56b40166201c019ab02924fc8c0596f59a0f84 /include/dixgrabs.h
parent347f377f3b3f8c9d230d6309ec8ae92aa86d78b7 (diff)
dix: add CopyGrab() function
Not really needed at this point, but will be once touch support is added. Since grabs are now expected to be allocated/freed with AllocGrab and FreeGrab, CopyGrab must increase the refcount and duplicate the modifier masks. Until the callers are switched to use FreeGrab, this introduces memleaks. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include/dixgrabs.h')
-rw-r--r--include/dixgrabs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dixgrabs.h b/include/dixgrabs.h
index 2ed8a54b4..65ff45d1d 100644
--- a/include/dixgrabs.h
+++ b/include/dixgrabs.h
@@ -33,6 +33,7 @@ extern void UngrabAllDevices(Bool kill_client);
extern GrabPtr AllocGrab(void);
extern void FreeGrab(GrabPtr grab);
+extern Bool CopyGrab(GrabPtr dst, const GrabPtr src);
extern GrabPtr CreateGrab(
int /* client */,