From 7497cc08f6894c9c64ab9e88b247683a09153e84 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 25 Feb 2025 19:25:50 +0100 Subject: [PATCH] dix: make MasksPerDetailMask define private It's only ever used inside dix/grabs.c, no outside users, no no need to keep it public. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/grabs.c | 4 ++++ include/inputstr.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dix/grabs.c b/dix/grabs.c index addc4a09c..1fe061c6d 100644 --- a/dix/grabs.c +++ b/dix/grabs.c @@ -67,6 +67,10 @@ SOFTWARE. #include "exglobals.h" #include "inpututils.h" +#define MasksPerDetailMask 8 /* 256 keycodes and 256 possible + modifier combinations, but only + 3 buttons. */ + #define BITMASK(i) (((Mask)1) << ((i) & 31)) #define MASKIDX(i) ((i) >> 5) #define MASKWORD(buf, i) buf[MASKIDX(i)] diff --git a/include/inputstr.h b/include/inputstr.h index c3bbfbe08..aa4c9a37f 100644 --- a/include/inputstr.h +++ b/include/inputstr.h @@ -157,10 +157,6 @@ typedef struct _OtherInputMasks { * keyboard/pointer device) going at once in the server. */ -#define MasksPerDetailMask 8 /* 256 keycodes and 256 possible - modifier combinations, but only - 3 buttons. */ - typedef struct _DetailRec { /* Grab details may be bit masks */ unsigned int exact; Mask *pMask;