kbd: move _XkbWantsDetectableAutoRepeat() macro into dix/events.c

That's the only place where it is used, so no need to keep it
in a public header.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1462>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-04-03 16:06:32 +02:00 committed by Marge Bot
parent f8057261fe
commit cdb4d5648a
2 changed files with 3 additions and 3 deletions

View File

@ -146,6 +146,9 @@ Equipment Corporation.
#include "enterleave.h" #include "enterleave.h"
#include "mi.h" #include "mi.h"
#define _XkbWantsDetectableAutoRepeat(c) \
((c)->xkbClientFlags&XkbPCF_DetectableAutoRepeatMask)
/* Extension events type numbering starts at EXTENSION_EVENT_BASE. */ /* Extension events type numbering starts at EXTENSION_EVENT_BASE. */
#define NoSuchEvent 0x80000000 /* so doesn't match NoEventMask */ #define NoSuchEvent 0x80000000 /* so doesn't match NoEventMask */
#define StructureAndSubMask ( StructureNotifyMask | SubstructureNotifyMask ) #define StructureAndSubMask ( StructureNotifyMask | SubstructureNotifyMask )

View File

@ -232,9 +232,6 @@ typedef struct _XkbSrvLedInfo {
#define _XkbClientInitialized (1<<7) #define _XkbClientInitialized (1<<7)
#define _XkbClientIsAncient (1<<6) #define _XkbClientIsAncient (1<<6)
#define _XkbWantsDetectableAutoRepeat(c)\
((c)->xkbClientFlags&XkbPCF_DetectableAutoRepeatMask)
/* /*
* Settings for flags field * Settings for flags field
*/ */