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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-23 19:23:34 +02:00
parent 4f2bd438cd
commit 985f4c22c6
3 changed files with 14 additions and 3 deletions

View File

@ -464,4 +464,17 @@ Bool IsKeyboardDevice(DeviceIntPtr dev)
Bool InputDevIsMaster(DeviceIntPtr dev) Bool InputDevIsMaster(DeviceIntPtr dev)
_X_ATTRIBUTE_NONNULL_ARG(1); _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 */ #endif /* _XSERVER_INPUT_PRIV_H */

View File

@ -288,9 +288,6 @@ typedef struct {
DeviceIntPtr device; DeviceIntPtr device;
} DeviceEventInfoRec; } DeviceEventInfoRec;
extern _X_EXPORT Bool
IsFloating(DeviceIntPtr dev);
extern _X_EXPORT void *lastGLContext; extern _X_EXPORT void *lastGLContext;
/** /**

View File

@ -37,6 +37,7 @@
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include "dix/cursor_priv.h" #include "dix/cursor_priv.h"
#include "dix/input_priv.h"
#include "servermd.h" #include "servermd.h"
#include "scrnintstr.h" #include "scrnintstr.h"