From 14dba35dacaa356ca223a24556e0d00b9da44d48 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 23 May 2025 17:00:28 +0200 Subject: [PATCH] dix: unexport PickKeyboard() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- Xi/grabdevb.c | 1 + Xi/grabdevk.c | 1 + dix/input_priv.h | 9 +++++++++ include/dix.h | 3 --- xkb/xkbEvents.c | 1 + 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Xi/grabdevb.c b/Xi/grabdevb.c index 9a2ef87ab..f768b10fd 100644 --- a/Xi/grabdevb.c +++ b/Xi/grabdevb.c @@ -56,6 +56,7 @@ SOFTWARE. #include #include "dix/exevents_priv.h" +#include "dix/input_priv.h" #include "inputstr.h" /* DeviceIntPtr */ #include "windowstr.h" /* window structure */ diff --git a/Xi/grabdevk.c b/Xi/grabdevk.c index 7668735ea..5f9e8284b 100644 --- a/Xi/grabdevk.c +++ b/Xi/grabdevk.c @@ -56,6 +56,7 @@ SOFTWARE. #include #include "dix/exevents_priv.h" +#include "dix/input_priv.h" #include "inputstr.h" /* DeviceIntPtr */ #include "windowstr.h" /* window structure */ diff --git a/dix/input_priv.h b/dix/input_priv.h index cf9f12f20..2ce785f4a 100644 --- a/dix/input_priv.h +++ b/dix/input_priv.h @@ -428,4 +428,13 @@ extern CallbackListPtr DeviceEventCallback; DeviceIntPtr PickPointer(ClientPtr pClient) _X_ATTRIBUTE_NONNULL_ARG(1); +/* + * @brief pick an appropriate keyboard for the given client + * + * searching the list of devices for the keyboard device that is + * paired with the client's pointer. + */ +DeviceIntPtr PickKeyboard(ClientPtr client) + _X_ATTRIBUTE_NONNULL_ARG(1); + #endif /* _XSERVER_INPUT_PRIV_H */ diff --git a/include/dix.h b/include/dix.h index 0695a5971..7c4ba4dc0 100644 --- a/include/dix.h +++ b/include/dix.h @@ -260,9 +260,6 @@ WriteEventsToClient(ClientPtr /*pClient */ , int /*count */ , xEventPtr /*events */ ); -extern _X_EXPORT DeviceIntPtr -PickKeyboard(ClientPtr /* client */ ); - /* * ServerGrabCallback stuff */ diff --git a/xkb/xkbEvents.c b/xkb/xkbEvents.c index cfe9ba11c..05177bc1b 100644 --- a/xkb/xkbEvents.c +++ b/xkb/xkbEvents.c @@ -34,6 +34,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include "dix/exevents_priv.h" +#include "dix/input_priv.h" #include "inputstr.h" #include "exglobals.h"