From 9a659902864784e39319e623ea9646fd7d2764d3 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 6 Mar 2025 16:41:56 +0100 Subject: [PATCH] dix: make SERVER_BIT define private Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/resource_priv.h | 2 ++ include/resource.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dix/resource_priv.h b/dix/resource_priv.h index d118d13fd8..dabec272af 100644 --- a/dix/resource_priv.h +++ b/dix/resource_priv.h @@ -10,6 +10,8 @@ #define SameClient(obj,client) \ (CLIENT_BITS((obj)->resource) == (client)->clientAsMask) +#define SERVER_BIT (Mask)0x40000000 /* use illegal bit */ + /* * @brief retrieve client that owns given window * diff --git a/include/resource.h b/include/resource.h index 26fa56d457..3df0b9156c 100644 --- a/include/resource.h +++ b/include/resource.h @@ -109,7 +109,6 @@ extern _X_EXPORT unsigned int ResourceClientBits(void); #define RESOURCE_CLIENT_MASK (((1 << ResourceClientBits()) - 1) << CLIENTOFFSET) /* extract the client mask from an XID */ #define CLIENT_BITS(id) ((id) & RESOURCE_CLIENT_MASK) -#define SERVER_BIT (Mask)0x40000000 /* use illegal bit */ #define BAD_RESOURCE 0xe0000000