From 15bb2bbb370420404f48520538d373fd19220af2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Jun 2025 11:20:40 +0200 Subject: [PATCH] randr: re-export RRProviderSetCapabilities() for Nvidia legacy NVidia's proprietary driver does it's own randr implementation (why ?) and needs this function for this. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 9 +++++++++ randr/randrstr_priv.h | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index 82a7f914e..086eb0d95 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -722,6 +722,15 @@ _X_EXPORT /* just for Nvidia legacy */ RRProviderPtr RRProviderCreate(ScreenPtr pScreen, const char *name, int nameLen); +/* + * Set provider capabilities field + * + * @param provider the provider whose capabilities are to be set + * @param capabilities the new capabilities + */ +_X_EXPORT /* just for Nvidia legacy */ +void RRProviderSetCapabilities(RRProviderPtr provider, uint32_t capabilities); + #endif /* _RANDRSTR_H_ */ /* diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index b61f94b32..5dae17171 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -381,14 +381,6 @@ Bool RRProviderInit(void); */ void RRProviderInitErrorValue(void); -/* - * Set provider capabilities field - * - * @param provider the provider whose capabilities are to be set - * @param capabilities the new capabilities - */ -void RRProviderSetCapabilities(RRProviderPtr provider, uint32_t capabilities); - /* * Destroy a provider and free it's memory *