From abcd627d400c8ea4d5544286d9894480da8b52d7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 23 May 2025 17:13:51 +0200 Subject: [PATCH] dix: unexport IsParent() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/dix_priv.h | 10 ++++++++++ include/dix.h | 4 ---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dix/dix_priv.h b/dix/dix_priv.h index 1fbbf8ff2..56a2882bc 100644 --- a/dix/dix_priv.h +++ b/dix/dix_priv.h @@ -544,4 +544,14 @@ void ScreenRestructured(ScreenPtr pScreen) */ int OtherClientGone(void *value, XID id); +/* + * @brief check whether one window is parent of another + * + * @param parent the alleged parent + * @param child the alleged child + * @return TRUE if `child` is a child window of `parent` + */ +Bool IsParent(WindowPtr parent, WindowPtr child) + _X_ATTRIBUTE_NONNULL_ARG(1,2); + #endif /* _XSERVER_DIX_PRIV_H */ diff --git a/include/dix.h b/include/dix.h index 7c4ba4dc0..afbf7c1a6 100644 --- a/include/dix.h +++ b/include/dix.h @@ -231,10 +231,6 @@ SetVendorRelease(int release); /* events.c */ -extern _X_EXPORT Bool -IsParent(WindowPtr /* maybeparent */ , - WindowPtr /* child */ ); - extern _X_EXPORT void NoticeTime(const DeviceIntPtr dev, TimeStamp time);