From 985f4c22c6a1117399760abf8fc40dbaeaea7080 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 23 May 2025 19:23:34 +0200 Subject: [PATCH] dix: unexport and document IsFloating() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/input_priv.h | 13 +++++++++++++ include/dix.h | 3 --- render/animcur.c | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/dix/input_priv.h b/dix/input_priv.h index 2b44b0679..0960f4dae 100644 --- a/dix/input_priv.h +++ b/dix/input_priv.h @@ -464,4 +464,17 @@ Bool IsKeyboardDevice(DeviceIntPtr dev) Bool InputDevIsMaster(DeviceIntPtr dev) _X_ATTRIBUTE_NONNULL_ARG(1); +/* + * @brief check whether input device is floating + * + * when a slave device is grabbed directly (but not it's master), it's + * temporarily detached from the master (for as long as the grab is held) + * we call this state `floating` + * + * @param dev device to check + * @return TRUE if the device is in `floating` state + */ +Bool IsFloating(DeviceIntPtr dev) + _X_ATTRIBUTE_NONNULL_ARG(1); + #endif /* _XSERVER_INPUT_PRIV_H */ diff --git a/include/dix.h b/include/dix.h index 6c083172f..05cb620c3 100644 --- a/include/dix.h +++ b/include/dix.h @@ -288,9 +288,6 @@ typedef struct { DeviceIntPtr device; } DeviceEventInfoRec; -extern _X_EXPORT Bool -IsFloating(DeviceIntPtr dev); - extern _X_EXPORT void *lastGLContext; /** diff --git a/render/animcur.c b/render/animcur.c index f906cd813..171f4d308 100644 --- a/render/animcur.c +++ b/render/animcur.c @@ -37,6 +37,7 @@ #include #include "dix/cursor_priv.h" +#include "dix/input_priv.h" #include "servermd.h" #include "scrnintstr.h"