dix: make CopyGrab() static

This function is only called once in the same source file, no external callers
at all. So, it doesn't need to be visible outside that file, and we can allow
the compiler to do whatever fancy optimizations it might wanna do.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
(cherry picked from commit 93856053b7)
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-09-04 13:02:03 +02:00
committed by Alan Coopersmith
parent 1c3d77eda5
commit 8cd50a21e7
2 changed files with 3 additions and 2 deletions

View File

@@ -188,6 +188,8 @@ UngrabAllDevices(Bool kill_client)
ErrorF("End list of ungrabbed devices\n");
}
static Bool CopyGrab(GrabPtr dst, const GrabPtr src);
GrabPtr
AllocGrab(const GrabPtr src)
{
@@ -264,7 +266,7 @@ FreeGrab(GrabPtr pGrab)
free(pGrab);
}
Bool
static Bool
CopyGrab(GrabPtr dst, const GrabPtr src)
{
Mask *mdetails_mask = NULL;

View File

@@ -33,7 +33,6 @@ extern void UngrabAllDevices(Bool kill_client);
extern GrabPtr AllocGrab(const GrabPtr src);
extern void FreeGrab(GrabPtr grab);
extern Bool CopyGrab(GrabPtr dst, const GrabPtr src);
extern GrabPtr CreateGrab(int /* client */ ,
DeviceIntPtr /* device */ ,