mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
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>
This commit is contained in:
parent
347f377f3b
commit
b0e9e2e326
3 changed files with 37 additions and 2 deletions
|
|
@ -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 */,
|
||||
|
|
|
|||
Loading…
Reference in a new issue